Skip to content

Commit

Permalink
fix nil pointer ref
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Jun 10, 2024
1 parent e1e7e99 commit dda253e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion relayer/chains/cosmos/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ func (cc *CosmosProvider) startLivelinessChecks(ctx context.Context, timeout tim

// exit routine if there is only one rpc client
if len(rpcs) <= 1 {
cc.log.Debug("No backup RPCs defined", zap.String("chain", cc.ChainName()))
if cc.log != nil {
cc.log.Debug("No backup RPCs defined", zap.String("chain", cc.ChainName()))
}
return
}

Expand Down
4 changes: 3 additions & 1 deletion relayer/chains/penumbra/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ func (cc *PenumbraProvider) startLivelinessChecks(ctx context.Context, timeout t

// exit routine if there is only one rpc client
if len(rpcs) <= 1 {
cc.log.Debug("No backup RPCs defined", zap.String("chain", cc.ChainName()))
if cc.log != nil {
cc.log.Debug("No backup RPCs defined", zap.String("chain", cc.ChainName()))
}
return
}

Expand Down

0 comments on commit dda253e

Please sign in to comment.