physical/consul: Fixing read of leader when standby. Fixes #178
This commit is contained in:
parent
0cea01607b
commit
47cfc85079
|
@ -126,7 +126,7 @@ func (c *ConsulBackend) LockWith(key, value string) (Lock, error) {
|
||||||
}
|
}
|
||||||
cl := &ConsulLock{
|
cl := &ConsulLock{
|
||||||
client: c.client,
|
client: c.client,
|
||||||
key: key,
|
key: c.path + key,
|
||||||
lock: lock,
|
lock: lock,
|
||||||
}
|
}
|
||||||
return cl, nil
|
return cl, nil
|
||||||
|
|
Loading…
Reference in a new issue