refactor(client): remove redundant timestamp parameter from poll_timeouts

Use internal monotonic time by default and introduce poll_timeouts_at for callers requiring a specific sampled Instant. This simplifies the API for standard usage while maintaining flexibility for external event loops.
This commit is contained in:
Nils Andreas Svee committed 2026-05-11 09:33:55 +07:00
1 parent d8b580a19c
commit 1a04f44bb5
10 files changed
+37 -31

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ mod support;
use std::time::Duration;
use irtt_client::{
Client, ClientConfig, ClientError, ClientEvent, ClientTimestamp, OpenOutcome, SocketConfig,
Client, ClientConfig, ClientError, ClientEvent, OpenOutcome, SocketConfig,
WarningKind,
};
use irtt_proto::{echo_packet_len, ProtoError, TimestampFields};
+1 -1
View File
@@ -1,6 +1,6 @@
mod support;
use irtt_client::{Client, ClientConfig, ClientEvent, ClientTimestamp, NegotiationPolicy};
use irtt_client::{Client, ClientConfig, ClientEvent, NegotiationPolicy};
use irtt_proto::{echo_header_len, echo_packet_len, Params, TimestampFields};
use support::{config_for_params, default_params, run_one_probe, BackendPeer, ServerObservation};
@@ -1,6 +1,5 @@
mod support;
use irtt_client::ClientTimestamp;
use std::time::Duration;
use irtt_client::{
+1 -1
View File
@@ -1,7 +1,7 @@
mod support;
use irtt_client::{
Client, ClientConfig, ClientError, ClientEvent, ClientTimestamp, NegotiationPolicy,
Client, ClientConfig, ClientError, ClientEvent, NegotiationPolicy,
};
use irtt_proto::{echo_packet_len, Params, TimestampFields};
+1 -1
View File
@@ -11,7 +11,7 @@ use std::{
};
use irtt_client::{
Client, ClientConfig, ClientEvent, ClientTimestamp, NegotiatedParams, OpenOutcome, SocketConfig,
Client, ClientConfig, ClientEvent, NegotiatedParams, OpenOutcome, SocketConfig,
};
use irtt_proto::{
compute_hmac_in_place, echo_packet_len, flags, verify_hmac, Clock, Params, ProtoError,