@@ -178,7 +178,7 @@ impl Future for IncomingFuture {
178178 Ok ( conn) => conn,
179179 Err ( err) => return Poll :: Ready ( Err ( err. into ( ) ) ) ,
180180 } ;
181- try_send_rtt_msg ( conn. quinn_connection ( ) , this. ep , conn. remote_id ( ) ) ;
181+ try_send_rtt_msg ( conn. quinn_connection ( ) , this. ep , conn. remote_id ) ;
182182 Poll :: Ready ( Ok ( conn) )
183183 }
184184 }
@@ -442,7 +442,7 @@ impl Future for Connecting {
442442 }
443443 } ;
444444
445- try_send_rtt_msg ( conn. quinn_connection ( ) , this. ep , conn. remote_id ( ) ) ;
445+ try_send_rtt_msg ( conn. quinn_connection ( ) , this. ep , conn. remote_id ) ;
446446 Poll :: Ready ( Ok ( conn) )
447447 }
448448 }
@@ -520,7 +520,7 @@ impl Future for Accepting {
520520 Err ( err) => return Poll :: Ready ( Err ( err. into ( ) ) ) ,
521521 } ;
522522
523- try_send_rtt_msg ( conn. quinn_connection ( ) , this. ep , conn. remote_id ( ) ) ;
523+ try_send_rtt_msg ( conn. quinn_connection ( ) , this. ep , conn. remote_id ) ;
524524 Poll :: Ready ( Ok ( conn) )
525525 }
526526 }
@@ -824,8 +824,8 @@ impl OutgoingZeroRttConnection {
824824 /// connection.
825825 ///
826826 /// [`PublicKey`]: iroh_base::PublicKey
827- pub fn remote_id ( & self ) -> Result < PublicKey , RemoteEndpointIdError > {
828- remote_id_from_quinn_conn ( & self . inner )
827+ pub fn remote_id ( & self ) -> Result < EndpointId , RemoteEndpointIdError > {
828+ remote_id_from_quinn_conn ( & self . inner ) . map ( EndpointId :: from )
829829 }
830830
831831 /// A stable identifier for this connection.
@@ -1135,8 +1135,8 @@ impl IncomingZeroRttConnection {
11351135 /// connection.
11361136 ///
11371137 /// [`PublicKey`]: iroh_base::PublicKey
1138- pub fn remote_id ( & self ) -> Result < PublicKey , RemoteEndpointIdError > {
1139- remote_id_from_quinn_conn ( & self . inner )
1138+ pub fn remote_id ( & self ) -> Result < EndpointId , RemoteEndpointIdError > {
1139+ remote_id_from_quinn_conn ( & self . inner ) . map ( EndpointId :: from )
11401140 }
11411141
11421142 /// A stable identifier for this connection.
@@ -1434,8 +1434,8 @@ impl Connection {
14341434 /// connection.
14351435 ///
14361436 /// [`PublicKey`]: iroh_base::PublicKey
1437- pub fn remote_id ( & self ) -> PublicKey {
1438- self . remote_id
1437+ pub fn remote_id ( & self ) -> EndpointId {
1438+ self . remote_id . into ( )
14391439 }
14401440
14411441 /// A stable identifier for this connection.
@@ -1495,7 +1495,7 @@ impl Connection {
14951495/// If we can't notify the actor that will impact performance a little, but we can still
14961496/// function.
14971497fn try_send_rtt_msg ( conn : & quinn:: Connection , ep : & Endpoint , remote_id : PublicKey ) {
1498- let Some ( conn_type_changes) = ep. conn_type ( remote_id) else {
1498+ let Some ( conn_type_changes) = ep. conn_type ( remote_id. into ( ) ) else {
14991499 warn ! ( ?conn, "failed to create conn_type stream" ) ;
15001500 return ;
15011501 } ;
0 commit comments