mirror of
https://github.com/go-kit/kit.git
synced 2025-07-17 01:12:38 +02:00
Remove unnecessary hot loop
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
@ -129,7 +129,6 @@ type fakeWatcher struct {
|
||||
// When an event occurs it just return nil response and error.
|
||||
// When an error occur it return a non nil error.
|
||||
func (fw *fakeWatcher) Next(context.Context) (*etcd.Response, error) {
|
||||
for {
|
||||
select {
|
||||
case <-fw.event:
|
||||
return nil, nil
|
||||
@ -138,7 +137,6 @@ func (fw *fakeWatcher) Next(context.Context) (*etcd.Response, error) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// newFakeClient return a new etcd.Client built on top of the mocked interfaces
|
||||
func newFakeClient(event, err chan bool, getres *getResult) Client {
|
||||
|
Reference in New Issue
Block a user