1
0
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:
Mark Sagi-Kazar
2021-07-20 19:59:03 +02:00
parent 5d96968aaa
commit 1c0d7c914b

View File

@ -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 {