Skip to content

Commit f8b38ae

Browse files
committed
type safety
1 parent 896570a commit f8b38ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/verifier/change_stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (verifier *Verifier) GetChangeStreamFilter() []bson.D {
108108
if len(verifier.srcNamespaces) == 0 {
109109
pipeline = []bson.D{{{"$match", bson.D{{"ns.db", bson.D{{"$ne", verifier.metaDBName}}}}}}}
110110
} else {
111-
filter := bson.A{}
111+
filter := []bson.D{}
112112
for _, ns := range verifier.srcNamespaces {
113113
db, coll := SplitNamespace(ns)
114114
filter = append(filter, bson.D{{"ns", bson.D{{"db", db}, {"coll", coll}}}})

0 commit comments

Comments
 (0)