From f4be7d018d233d7227a2102697ac37a55d04bc43 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 13 Feb 2019 14:39:38 +0000 Subject: [PATCH] delete context file --- registry/gossip/context.go | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 registry/gossip/context.go diff --git a/registry/gossip/context.go b/registry/gossip/context.go deleted file mode 100644 index fd2b37cb..00000000 --- a/registry/gossip/context.go +++ /dev/null @@ -1,17 +0,0 @@ -package gossip - -import ( - "context" - - "github.com/micro/go-micro/registry" -) - -// setRegistryOption returns a function to setup a context with given value -func setRegistryOption(k, v interface{}) registry.Option { - return func(o *registry.Options) { - if o.Context == nil { - o.Context = context.Background() - } - o.Context = context.WithValue(o.Context, k, v) - } -}