diff --git a/common/url.go b/common/url.go index bf58ca188c1769b81ed475f06852d0f4229ab97d..6e7a843c8f4d2d3b24caf50983baf041e2dd036d 100644 --- a/common/url.go +++ b/common/url.go @@ -31,7 +31,7 @@ import ( ) import ( - "github.com/dubbogo/gost/container" + "github.com/dubbogo/gost/container/gxset" "github.com/jinzhu/copier" perrors "github.com/pkg/errors" "github.com/satori/go.uuid" @@ -447,7 +447,7 @@ func (c URL) GetMethodParam(method string, key string, d string) string { return r } -func (c *URL) RemoveParams(set *container.HashSet) { +func (c *URL) RemoveParams(set *gxset.HashSet) { c.paramsLock.Lock() defer c.paramsLock.Unlock() for k := range set.Items { diff --git a/registry/protocol/protocol.go b/registry/protocol/protocol.go index c746cf8ef291bd198274971aad23e91ba6443e36..534a4b945965f332e49ff343557fa20355921454 100644 --- a/registry/protocol/protocol.go +++ b/registry/protocol/protocol.go @@ -23,7 +23,7 @@ import ( ) import ( - "github.com/dubbogo/gost/container" + "github.com/dubbogo/gost/container/gxset" ) import ( @@ -65,7 +65,7 @@ func init() { func getCacheKey(url *common.URL) string { newUrl := url.Clone() - delKeys := container.NewSet("dynamic", "enabled") + delKeys := gxset.NewSet("dynamic", "enabled") newUrl.RemoveParams(delKeys) return newUrl.String() }