From a60b57a6336dd92efba1d512e64d9a8cf3a1b6dc Mon Sep 17 00:00:00 2001 From: smallnest Date: Tue, 12 Feb 2019 17:51:12 +0800 Subject: [PATCH] fix inprocess registry --- client/inprocess_client.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/inprocess_client.go b/client/inprocess_client.go index c1bf0ea..2efac04 100644 --- a/client/inprocess_client.go +++ b/client/inprocess_client.go @@ -153,3 +153,10 @@ func (client *inprocessClient) Register(name string, rcvr interface{}, metadata client.Unlock() return } + +func (client *inprocessClient) Unregister(name string) error { + client.Lock() + delete(client.services, name) + client.Unlock() + return nil +}