mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
v3rpc: remove redundant locks
This commit is contained in:
parent
836c8159f6
commit
6412758177
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user