diff --git a/remoting/zookeeper/client.go b/remoting/zookeeper/client.go index b8f9fb4466db6586bd8b3d11206638bbfb1a585e..5d04dfb122bd4eab5d728ee8febcf2cda797fe78 100644 --- a/remoting/zookeeper/client.go +++ b/remoting/zookeeper/client.go @@ -298,7 +298,6 @@ func (z *ZookeeperClient) UnregisterEvent(zkPath string, event *chan struct{}) { if zkPath == "" { return } - z.Lock() a, ok := z.eventRegistry[zkPath] if !ok { @@ -318,7 +317,6 @@ func (z *ZookeeperClient) UnregisterEvent(zkPath string, event *chan struct{}) { } else { z.eventRegistry[zkPath] = a } - z.Unlock() }