mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-23 21:44:41 +02:00
fix context value nil (#2391)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package nacos
|
package nacos
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
@@ -27,7 +28,9 @@ func init() {
|
|||||||
// NewRegistry NewRegistry
|
// NewRegistry NewRegistry
|
||||||
func NewRegistry(opts ...registry.Option) registry.Registry {
|
func NewRegistry(opts ...registry.Option) registry.Registry {
|
||||||
n := &nacosRegistry{
|
n := &nacosRegistry{
|
||||||
opts: registry.Options{},
|
opts: registry.Options{
|
||||||
|
Context: context.Background(),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
if err := configure(n, opts...); err != nil {
|
if err := configure(n, opts...); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user