Skip to content

Commit f8cb021

Browse files
committed
Fix makeFilter name
1 parent ea64c53 commit f8cb021

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hack/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ host.docker.internal:2242/metrics
1010
## MongoLink CLI
1111

1212
```shell
13-
go install . && pml --source="mongodb://rs00:30000" --target="mongodb://rs10:30100" --reset-state --log-level="debug"
13+
go install . && pcsm --source="mongodb://rs00:30000" --target="mongodb://rs10:30100" --reset-state --log-level="debug"
1414
```
1515

1616

sel/sel.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ func MakeFilter(include, exclude []string) NSFilter {
2121
return AllowAllFilter
2222
}
2323

24-
includeFilter := doMakeFitler(include)
25-
excludeFilter := doMakeFitler(exclude)
24+
includeFilter := doMakeFilter(include)
25+
excludeFilter := doMakeFilter(exclude)
2626

2727
lg.Infof("Include filter: %v", strings.Join(include, ", "))
2828
lg.Infof("Exclude filter: %v", strings.Join(exclude, ", "))
@@ -74,7 +74,7 @@ func (f filterMap) Has(db, coll string) bool {
7474
return slices.Contains(list, coll) // only if explcitly listed
7575
}
7676

77-
func doMakeFitler(filter []string) filterMap {
77+
func doMakeFilter(filter []string) filterMap {
7878
// keys are database names. values are list collections that belong to the db.
7979
// if a key contains empty/nil, whole db is included (all its collections).
8080
filterMap := make(map[string][]string)

0 commit comments

Comments
 (0)