mirror of
https://github.com/smallnest/rpcx.git
synced 2025-11-01 11:52:42 +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()
|
client.Unlock()
|
||||||
return
|
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