mirror of
https://github.com/smallnest/rpcx.git
synced 2025-10-31 03:16:29 +08:00
fix inprocess registry
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user