Skip to content

Commit

Permalink
Fix inmem layer unlock bug (hashicorp#19323)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonodonnell committed Feb 23, 2023
1 parent 72bc820 commit f2a47b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vault/cluster/inmem_layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ func (l *InmemLayer) Dial(addr string, timeout time.Duration, tlsConfig *tls.Con
// gRPC sets a deadline of 20 seconds on the dail attempt, so
// matching that here.
time.Sleep(time.Second * 20)
l.l.Unlock()
return nil, deadlineError("i/o timeout")
}

Expand Down

0 comments on commit f2a47b0

Please sign in to comment.