Skip to content

Commit

Permalink
change icq timeout policy from retry to reject
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Dec 18, 2024
1 parent 4419b8c commit be789ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/icqoracle/keeper/icq.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (k Keeper) SubmitOsmosisClPoolICQ(
CallbackId: ICQCallbackID_OsmosisClPool,
CallbackData: tokenPriceBz,
TimeoutDuration: time.Duration(params.IcqTimeoutSec) * time.Second,
TimeoutPolicy: icqtypes.TimeoutPolicy_RETRY_QUERY_REQUEST,
TimeoutPolicy: icqtypes.TimeoutPolicy_REJECT_QUERY_RESPONSE,
}
if err := k.icqKeeper.SubmitICQRequest(ctx, query, true); err != nil {
k.Logger(ctx).Error(utils.LogWithTokenPriceQuery(tokenPrice.BaseDenom, tokenPrice.QuoteDenom, tokenPrice.OsmosisPoolId, "Error submitting OsmosisClPool ICQ, error '%s'", err.Error()))
Expand Down

0 comments on commit be789ef

Please sign in to comment.