Skip to content

Commit 0c0b420

Browse files
jayasimeta-codesync[bot]
authored andcommitted
Preventing panic because of clock skew (#1448)
Summary: Pull Request resolved: #1448 As titled. Reviewed By: vidhyav Differential Revision: D84067046 fbshipit-source-id: c8784ec14b535bf6b05424e8b7bf9e916e97d12a
1 parent 4a035a4 commit 0c0b420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hyperactor/src/mailbox/headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ pub fn log_message_latency_if_sampling(headers: &Attrs, actor_id: String) {
5656
return;
5757
};
5858
let now = RealClock.system_time_now();
59-
let latency = now.duration_since(*send_timestamp).unwrap();
59+
let latency = now.duration_since(*send_timestamp).unwrap_or_default();
6060
MESSAGE_LATENCY_MICROS.record(latency.as_micros() as f64, metric_pairs);
6161
}

0 commit comments

Comments
 (0)