Skip to content

Commit

Permalink
fixup! lock/etcd: port to etcd/v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Tortuyaux committed Aug 16, 2021
1 parent 5df34bb commit 47c3147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lock/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (c *EtcdLockClient) Get() (*Semaphore, error) {
return nil, err
}

sem.Index = uint64(kv.Lease)
sem.Index = uint64(kv.Version)

return sem, nil
}
Expand Down

0 comments on commit 47c3147

Please sign in to comment.