Copy paste fix.

Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
Antonio Navarro Perez 2021-03-05 18:42:14 +01:00
parent feea0fa347
commit 2927943734
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ func (l *leasedKV) create(initValue string) (<-chan *clientv3.LeaseKeepAliveResp
func (l *leasedKV) consumeLease(ch <-chan *clientv3.LeaseKeepAliveResponse) {
for {
kresp, ok := <-ch
_, ok := <-ch
if !ok {
l.mu.Lock()

View file

@ -84,7 +84,7 @@ func TestLeasedKv(t *testing.T) {
}
if v != newVal {
t.Fatal("obtained value is not the same as expected. Obtained:", v, "Expected:", initVal)
t.Fatal("obtained value is not the same as expected. Obtained:", v, "Expected:", newVal)
}
time.Sleep(5 * time.Second)