fix RUnlock of unlocked RWMutex

This commit is contained in:
Konstantin Lebedev 2022-07-26 12:57:07 +05:00
parent 3c42814b58
commit c88ea31f62

View file

@ -381,7 +381,6 @@ func (ms *MasterServer) OnPeerUpdate(update *master_pb.ClusterNodeUpdate, startF
*onPeerUpdateDoneCn <- peerName
}
}
ms.onPeerUpdateLock.RUnlock()
} else if isLeader {
if onPeerUpdateDoneCnPrev, ok := ms.onPeerUpdateDoneCns[peerName]; ok {
*onPeerUpdateDoneCnPrev <- ResetRaftServerRemovalTimeMsg