mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 08:10:50 +00:00
Copy paste fix.
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
parent
feea0fa347
commit
2927943734
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue