diff --git a/plugins/registry/nacos/nacos.go b/plugins/registry/nacos/nacos.go index 27b83909..31b143a9 100644 --- a/plugins/registry/nacos/nacos.go +++ b/plugins/registry/nacos/nacos.go @@ -1,6 +1,7 @@ package nacos import ( + "context" "errors" "fmt" "net" @@ -27,7 +28,9 @@ func init() { // NewRegistry NewRegistry func NewRegistry(opts ...registry.Option) registry.Registry { n := &nacosRegistry{ - opts: registry.Options{}, + opts: registry.Options{ + Context: context.Background(), + }, } if err := configure(n, opts...); err != nil { panic(err)