Skip to content

Commit

Permalink
read the returned error
Browse files Browse the repository at this point in the history
  • Loading branch information
insumity committed Sep 26, 2024
1 parent bab2d54 commit 34364b4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion x/ccv/provider/keeper/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,15 @@ func (k Keeper) AllocateTokens(ctx sdk.Context) {
)
continue
}
k.SetConsumerRewardsAllocationByDenom(cachedCtx, consumerId, denom, allocatedRewards)
err = k.SetConsumerRewardsAllocationByDenom(cachedCtx, consumerId, denom, allocatedRewards)
if err != nil {
k.Logger(ctx).Error(
"fail to set rewards for consumer chain",
"consumer id", consumerId,
"error", err.Error(),
)
continue
}
writeCache()
}
}
Expand Down

0 comments on commit 34364b4

Please sign in to comment.