fix collection breaker (#537)

* fix collection breaker

* optimized

* optimized

* optimized
This commit is contained in:
kingxt
2021-03-03 10:44:29 +08:00
committed by GitHub
parent f01472c9ea
commit a25cba5380
3 changed files with 7 additions and 4 deletions

View File

@@ -43,11 +43,11 @@ type (
}
)
func newCollection(collection *mgo.Collection) Collection {
func newCollection(collection *mgo.Collection, brk breaker.Breaker) Collection {
return &decoratedCollection{
name: collection.FullName,
collection: collection,
brk: breaker.NewBreaker(),
brk: brk,
}
}