mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Increase buffer size in etcd_watcher
This commit is contained in:
		@@ -139,13 +139,15 @@ func newEtcdWatcher(
 | 
				
			|||||||
		// monitor how much of this buffer is actually used.
 | 
							// monitor how much of this buffer is actually used.
 | 
				
			||||||
		etcdIncoming: make(chan *etcd.Response, 100),
 | 
							etcdIncoming: make(chan *etcd.Response, 100),
 | 
				
			||||||
		etcdError:    make(chan error, 1),
 | 
							etcdError:    make(chan error, 1),
 | 
				
			||||||
		outgoing:     make(chan watch.Event),
 | 
							// Similarly to etcdIncomming, we don't want to force context
 | 
				
			||||||
		userStop:     make(chan struct{}),
 | 
							// switch on every new incoming object.
 | 
				
			||||||
		stopped:      false,
 | 
							outgoing: make(chan watch.Event, 100),
 | 
				
			||||||
		wg:           sync.WaitGroup{},
 | 
							userStop: make(chan struct{}),
 | 
				
			||||||
		cache:        cache,
 | 
							stopped:  false,
 | 
				
			||||||
		ctx:          nil,
 | 
							wg:       sync.WaitGroup{},
 | 
				
			||||||
		cancel:       nil,
 | 
							cache:    cache,
 | 
				
			||||||
 | 
							ctx:      nil,
 | 
				
			||||||
 | 
							cancel:   nil,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	w.emit = func(e watch.Event) {
 | 
						w.emit = func(e watch.Event) {
 | 
				
			||||||
		// Give up on user stop, without this we leak a lot of goroutines in tests.
 | 
							// Give up on user stop, without this we leak a lot of goroutines in tests.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user