mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server: use buffered channel to avoid goroutine leak (#11941)
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
parent
261aa31dc5
commit
c199d3d8c3
@ -734,7 +734,7 @@ func (s *EtcdServer) start() {
|
|||||||
s.applyWait = wait.NewTimeList()
|
s.applyWait = wait.NewTimeList()
|
||||||
s.done = make(chan struct{})
|
s.done = make(chan struct{})
|
||||||
s.stop = make(chan struct{})
|
s.stop = make(chan struct{})
|
||||||
s.stopping = make(chan struct{})
|
s.stopping = make(chan struct{}, 1)
|
||||||
s.ctx, s.cancel = context.WithCancel(context.Background())
|
s.ctx, s.cancel = context.WithCancel(context.Background())
|
||||||
s.readwaitc = make(chan struct{}, 1)
|
s.readwaitc = make(chan struct{}, 1)
|
||||||
s.readNotifier = newNotifier()
|
s.readNotifier = newNotifier()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user