mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
proxy/grpcproxy: fix nil-map assign to 'singles'
This commit is contained in:
parent
d5d2370fc8
commit
a4ef36c8bf
@ -49,8 +49,9 @@ func (wp *watchProxy) Watch(stream pb.Watch_WatchServer) (err error) {
|
|||||||
wp.mu.Unlock()
|
wp.mu.Unlock()
|
||||||
|
|
||||||
sws := serverWatchStream{
|
sws := serverWatchStream{
|
||||||
cw: wp.cw,
|
cw: wp.cw,
|
||||||
groups: &wp.wgs,
|
groups: &wp.wgs,
|
||||||
|
singles: make(map[int64]*watcherSingle),
|
||||||
|
|
||||||
id: wp.nextStreamID,
|
id: wp.nextStreamID,
|
||||||
gRPCStream: stream,
|
gRPCStream: stream,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user