Change context key to string
This commit is contained in:
parent
9f037eafd2
commit
b4dc822ae3
@ -44,10 +44,8 @@ type PublishOption func(*PublishOptions)
|
|||||||
|
|
||||||
type SubscribeOption func(*SubscribeOptions)
|
type SubscribeOption func(*SubscribeOptions)
|
||||||
|
|
||||||
type contextKeyT string
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
registryKey = contextKeyT("github.com/micro/go-micro/registry")
|
registryKey = "github.com/micro/go-micro/registry"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewSubscribeOptions(opts ...SubscribeOption) SubscribeOptions {
|
func NewSubscribeOptions(opts ...SubscribeOption) SubscribeOptions {
|
||||||
|
Loading…
Reference in New Issue
Block a user