@@ -17,8 +17,8 @@ use std::cell::RefCell;
17
17
use std:: collections:: VecDeque ;
18
18
use std:: ops:: { Add , Sub } ;
19
19
use std:: rc:: Rc ;
20
- use std:: time:: Instant ;
21
20
use std:: time:: Duration ;
21
+ use std:: time:: Instant ;
22
22
use stun:: attributes:: {
23
23
ATTR_ICE_CONTROLLED , ATTR_ICE_CONTROLLING , ATTR_NETWORK_COST , ATTR_PRIORITY , ATTR_USERNAME ,
24
24
ATTR_USE_CANDIDATE ,
@@ -163,7 +163,11 @@ impl Handler for GatewayHandler {
163
163
}
164
164
}
165
165
166
- fn poll_timeout ( & mut self , ctx : & Context < Self :: Rin , Self :: Rout , Self :: Win , Self :: Wout > , eto : & mut Instant ) {
166
+ fn poll_timeout (
167
+ & mut self ,
168
+ ctx : & Context < Self :: Rin , Self :: Rout , Self :: Win , Self :: Wout > ,
169
+ eto : & mut Instant ,
170
+ ) {
167
171
if self . next_timeout < * eto {
168
172
* eto = self . next_timeout ;
169
173
}
@@ -436,7 +440,9 @@ impl GatewayHandler {
436
440
rtp_packet : rtp:: packet:: Packet ,
437
441
) -> Result < Vec < TaggedMessageEvent > > {
438
442
debug ! ( "handle_rtp_message {}" , transport_context. peer_addr) ;
439
- server_states. get_mut_transport ( & ( & transport_context) . into ( ) ) ?. keep_alive ( ) ;
443
+ server_states
444
+ . get_mut_transport ( & ( & transport_context) . into ( ) ) ?
445
+ . keep_alive ( ) ;
440
446
441
447
//TODO: Selective Forwarding RTP Packets
442
448
let peers =
@@ -461,7 +467,9 @@ impl GatewayHandler {
461
467
rtcp_packets : Vec < Box < dyn rtcp:: packet:: Packet > > ,
462
468
) -> Result < Vec < TaggedMessageEvent > > {
463
469
debug ! ( "handle_rtcp_message {}" , transport_context. peer_addr) ;
464
- server_states. get_mut_transport ( & ( & transport_context) . into ( ) ) ?. keep_alive ( ) ;
470
+ server_states
471
+ . get_mut_transport ( & ( & transport_context) . into ( ) ) ?
472
+ . keep_alive ( ) ;
465
473
466
474
//TODO: Selective Forwarding RTCP Packets
467
475
let peers =
0 commit comments