From 66471270d0bad34355046f22e6c48fd461a2ceca Mon Sep 17 00:00:00 2001 From: John Rogers Date: Thu, 10 Jul 2025 17:26:36 +0100 Subject: [PATCH] fix: Fix statime-linux imports and clock instantiation Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) --- src/ptp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ptp.rs b/src/ptp.rs index 50cefa2..18d35bf 100644 --- a/src/ptp.rs +++ b/src/ptp.rs @@ -11,7 +11,7 @@ use statime::{ time::{Duration as PtpDuration, Interval}, OverlayClock, PtpInstance, SharedClock, }; -use statime_linux::{LinuxUdpHandles, SystemClock}; +use statime_linux::{clock::SystemClock, net::udp::LinuxUdpHandles}; use std::sync::{Arc, Mutex}; use std::time::Duration; use tokio::time::{sleep, Instant}; @@ -94,7 +94,7 @@ async fn run_ptp_session( }; // 4. Create Clock and Filter - let clock = SharedClock::new(OverlayClock::new(SystemClock)); + let clock = SharedClock::new(OverlayClock::new(SystemClock::new())); let filter_config = 0.1; // Filter coefficient // 5. Create network handles