Change context key to string

This commit is contained in:
Asim Aslam 2019-05-29 10:58:41 +01:00
parent 9f037eafd2
commit b4dc822ae3

View File

@ -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 {