@@ -31,6 +31,7 @@ use crate::{
3131 endpoint:: DirectAddr ,
3232 magicsock:: {
3333 DiscoState , HEARTBEAT_INTERVAL , MagicsockMetrics , PATH_MAX_IDLE_TIMEOUT ,
34+ endpoint_map:: Private ,
3435 mapped_addrs:: { AddrMap , MappedAddr , RelayMappedAddr } ,
3536 transports:: { self , OwnedTransmit , TransportsSender } ,
3637 } ,
@@ -378,7 +379,7 @@ impl EndpointStateActor {
378379 . entry ( path_remote)
379380 . or_default ( )
380381 . sources
381- . insert ( Source :: Connection , Instant :: now ( ) ) ;
382+ . insert ( Source :: Connection { _0 : Private } , Instant :: now ( ) ) ;
382383 self . select_path ( ) ;
383384
384385 if path_remote_is_ip {
@@ -439,7 +440,8 @@ impl EndpointStateActor {
439440 let ping = disco:: Ping :: new ( self . local_endpoint_id ) ;
440441
441442 let path = self . paths . entry ( dst. clone ( ) ) . or_default ( ) ;
442- path. sources . insert ( Source :: CallMeMaybe , now) ;
443+ path. sources
444+ . insert ( Source :: CallMeMaybe { _0 : Private } , now) ;
443445 path. ping_sent = Some ( ping. tx_id ) ;
444446
445447 event ! (
@@ -481,7 +483,8 @@ impl EndpointStateActor {
481483 . await ;
482484
483485 let path = self . paths . entry ( src) . or_default ( ) ;
484- path. sources . insert ( Source :: Ping , Instant :: now ( ) ) ;
486+ path. sources
487+ . insert ( Source :: Ping { _0 : Private } , Instant :: now ( ) ) ;
485488
486489 trace ! ( "ping received, triggering holepunching" ) ;
487490 self . trigger_holepunching ( ) . await ;
@@ -621,12 +624,12 @@ impl EndpointStateActor {
621624 . filter_map ( |( addr, state) | {
622625 if state
623626 . sources
624- . get ( & Source :: CallMeMaybe )
627+ . get ( & Source :: CallMeMaybe { _0 : Private } )
625628 . map ( |when| when. elapsed ( ) <= CALL_ME_MAYBE_VALIDITY )
626629 . unwrap_or_default ( )
627630 || state
628631 . sources
629- . get ( & Source :: Ping )
632+ . get ( & Source :: Ping { _0 : Private } )
630633 . map ( |when| when. elapsed ( ) <= CALL_ME_MAYBE_VALIDITY )
631634 . unwrap_or_default ( )
632635 {
@@ -824,7 +827,7 @@ impl EndpointStateActor {
824827 . entry ( path_remote. clone ( ) )
825828 . or_default ( )
826829 . sources
827- . insert ( Source :: Connection , Instant :: now ( ) ) ;
830+ . insert ( Source :: Connection { _0 : Private } , Instant :: now ( ) ) ;
828831 }
829832
830833 self . select_path ( ) ;
0 commit comments