mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2026-01-08 21:21:32 +00:00
Add new Consul API client MonitorRetries option
This commit is contained in:
@@ -206,9 +206,10 @@ func (c *ConsulBackend) List(prefix string) ([]string, error) {
|
||||
func (c *ConsulBackend) LockWith(key, value string) (Lock, error) {
|
||||
// Create the lock
|
||||
opts := &api.LockOptions{
|
||||
Key: c.path + key,
|
||||
Value: []byte(value),
|
||||
SessionName: "Vault Lock",
|
||||
Key: c.path + key,
|
||||
Value: []byte(value),
|
||||
SessionName: "Vault Lock",
|
||||
MonitorRetries: 5,
|
||||
}
|
||||
lock, err := c.client.LockOpts(opts)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user