v3rpc: remove redundant locks

This commit is contained in:
Gyu-Ho Lee 2016-10-07 15:13:56 -07:00
parent 836c8159f6
commit 6412758177

View File

@ -180,14 +180,10 @@ func (sws *serverWatchStream) recvLoop() error {
if id != -1 {
sws.mu.Lock()
if creq.ProgressNotify {
sws.mu.Lock()
sws.progress[id] = true
sws.mu.Unlock()
}
if creq.PrevKv {
sws.mu.Lock()
sws.prevKV[id] = true
sws.mu.Unlock()
}
sws.mu.Unlock()
}