fix inprocess registry

This commit is contained in:
smallnest
2019-02-12 17:51:12 +08:00
parent 97322d6a4e
commit a60b57a633

View File

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