Skip to content

Commit

Permalink
CNS-29: fix missing err check
Browse files Browse the repository at this point in the history
  • Loading branch information
oren-lava committed Dec 21, 2022
1 parent aa4f1aa commit 0dead9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/pairing/keeper/msg_server_relay_payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,10 @@ func (k msgServer) dealWithUnresponsiveProviders(ctx sdk.Context, unresponsiveDa
// unstake provider
utils.LogLavaEvent(ctx, logger, "jailing_event", map[string]string{"provider_address": sdkUnresponsiveProviderAddress.String(), "chain_id": chainID}, "Unresponsive provider was unstaked from the chain due to unresponsiveness")
err = k.unSafeUnstakeProviderEntry(ctx, epochstoragetypes.ProviderKey, chainID, indexInStakeStorage, existingEntry)
utils.LavaFormatError("unable to unstake provider entry (unsafe method)", err, &map[string]string{"chainID": chainID, "indexInStakeStorage": strconv.FormatUint(indexInStakeStorage, 10), "existingEntry": existingEntry.GetStake().String()})
continue
if err != nil {
utils.LavaFormatError("unable to unstake provider entry (unsafe method)", err, &map[string]string{"chainID": chainID, "indexInStakeStorage": strconv.FormatUint(indexInStakeStorage, 10), "existingEntry": existingEntry.GetStake().String()})
continue
}
}
}
// set the final provider payment storage state including the complaints
Expand Down

0 comments on commit 0dead9d

Please sign in to comment.