@ -9,8 +9,8 @@ import (
)
func (s *ZkClient) Register(rpcRegisterName, host string, port int, opts ...grpc.DialOption) error {
s.lock.Lock()
// s.lock.Lock()
defer s.lock.Unlock()
// defer s.lock.Unlock()
if err := s.ensureName(rpcRegisterName); err != nil {
return err
}