Skip to content

Commit

Permalink
go/keymanager/client: Don't treat no connection as a permanent error
Browse files Browse the repository at this point in the history
The condition may be transient if connection is in progress.
  • Loading branch information
kostko committed Apr 16, 2020
1 parent eba9145 commit b8a1687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/keymanager/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func (c *Client) CallRemote(ctx context.Context, data []byte) ([]byte, error) {
call := func() error {
conn := c.committeeClient.GetConnection()
if conn == nil {
c.logger.Error("no key manager connection for runtime")
return backoff.Permanent(ErrKeyManagerNotAvailable)
c.logger.Warn("no key manager connection for runtime")
return ErrKeyManagerNotAvailable
}
client := enclaverpc.NewTransportClient(conn)

Expand Down

0 comments on commit b8a1687

Please sign in to comment.