Skip to content

Commit

Permalink
add whitespace after if
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyf committed Jan 17, 2025
1 parent 152c318 commit 354acbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ private SendResult sendDefaultImpl(
long curTimeout = timeout - costTime;
// In order to prevent the broker from being unresponsive for a long time and thus being unable to retry next time,
// if there is another chance for retry next time, the maximum sending time is modified to the maximum sendMsgMaxTimeoutPerRequest.
if(defaultMQProducer.getSendMsgMaxTimeoutPerRequest() > -1 && times + 1 < timesTotal
if (defaultMQProducer.getSendMsgMaxTimeoutPerRequest() > -1 && times + 1 < timesTotal
&& curTimeout > defaultMQProducer.getSendMsgMaxTimeoutPerRequest()) {
curTimeout = defaultMQProducer.getSendMsgMaxTimeoutPerRequest();
}
Expand Down

0 comments on commit 354acbf

Please sign in to comment.