mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #3939 from xiang90/fix_watch
storage: add missing return for unsafeAddWatching
This commit is contained in:
commit
14210cf8a7
@ -385,8 +385,9 @@ func unsafeAddWatching(synced *map[string]map[*watching]struct{}, k string, wa *
|
|||||||
} else {
|
} else {
|
||||||
v[wa] = struct{}{}
|
v[wa] = struct{}{}
|
||||||
}
|
}
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
mp[k] = make(map[*watching]struct{})
|
mp[k] = make(map[*watching]struct{})
|
||||||
mp[k][wa] = struct{}{}
|
mp[k][wa] = struct{}{}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user