Skip to content

Commit

Permalink
fix: added correct package
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinnagesh authored Sep 19, 2023
1 parent 31c13e3 commit b786d2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion consistent/consistent.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/BurntSushi/toml"
"github.com/rwynn/gtm/v2"
"github.com/sachinnagesh/gtm/v2"
"github.com/serialx/hashring"
"go.mongodb.org/mongo-driver/bson/primitive"
)
Expand Down Expand Up @@ -37,6 +37,7 @@ func ConsistentHashFilterFromFile(name string, configFile string) (gtm.OpFilter,
// if the operation will be accepted for processing. can be used to distribute work.
// name: the name of the worker creating this filter. e.g. "Harry"
// document: a map with a string key 'workers' which has a corresponding
//
// slice of string representing the available workers
func ConsistentHashFilterFromDocument(name string, document map[string]interface{}) (gtm.OpFilter, error) {
workers := document["workers"]
Expand Down

0 comments on commit b786d2b

Please sign in to comment.