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{
|
||||
client: c.client,
|
||||
key: key,
|
||||
key: c.path + key,
|
||||
lock: lock,
|
||||
}
|
||||
return cl, nil
|
||||
|
|
Loading…
Reference in New Issue