Skip to content

Commit 73b94ce

Browse files
authored
[ISSUE #2618]🐛Fix PopMessageRequestHeader#is_timeout_too_much attempt to subtract with overflow🔥 (#2621)
1 parent 4545ecb commit 73b94ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketmq-remoting/src/protocol/header/pop_message_request_header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub struct PopMessageRequestHeader {
5454

5555
impl PopMessageRequestHeader {
5656
pub fn is_timeout_too_much(&self) -> bool {
57-
get_current_millis() - self.born_time - self.poll_time > 500
57+
get_current_millis() as i64 - self.born_time as i64 - self.poll_time as i64 > 500
5858
}
5959
}
6060

0 commit comments

Comments
 (0)