11use anyhow:: Result ;
22use arancini_lib:: processor:: decode_bmp_message;
33use arancini_lib:: sender:: UpdateSender ;
4- use arancini_lib:: state:: { synthesize_withdraw_update , State } ;
4+ use arancini_lib:: state:: { State , synthesize_withdraw_update } ;
55use arancini_lib:: state_store:: memory:: MemoryStore ;
66use arancini_lib:: state_store:: store:: StateStore ;
7- use arancini_lib:: update:: { decode_updates , new_metadata , Update , UpdateMetadata } ;
7+ use arancini_lib:: update:: { Update , UpdateMetadata , decode_updates , new_metadata } ;
88use async_nats:: jetstream;
99use bgpkit_parser:: bmp:: messages:: { PeerDownNotification , RouteMonitoring } ;
1010use bgpkit_parser:: parser:: bmp:: messages:: BmpMessageBody ;
@@ -20,8 +20,8 @@ use monoio::io::AsyncReadRent;
2020use monoio:: net:: { ListenerOpts , TcpListener , TcpStream } ;
2121use monoio:: time:: sleep;
2222use monoio:: { FusionDriver , RuntimeBuilder } ;
23- use std:: collections:: hash_map:: Entry ;
2423use std:: collections:: HashMap ;
24+ use std:: collections:: hash_map:: Entry ;
2525use std:: net:: { IpAddr , SocketAddr } ;
2626use std:: sync:: Arc ;
2727use std:: sync:: Mutex ;
@@ -665,8 +665,7 @@ async fn handle_connection<S: UpdateSender>(
665665
666666 trace ! (
667667 "{}: arancini read BMP packet ({} bytes)" ,
668- socket,
669- packet_length
668+ socket, packet_length
670669 ) ;
671670 let mut bytes = frame_buffer. split_to ( packet_length) . freeze ( ) ;
672671 if let Err ( err) =
@@ -1472,7 +1471,7 @@ mod tests {
14721471 use std:: net:: { Ipv4Addr , SocketAddr } ;
14731472 use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
14741473 use tokio:: sync:: { Notify , Semaphore } ;
1475- use tokio:: time:: { timeout , Duration } ;
1474+ use tokio:: time:: { Duration , timeout } ;
14761475
14771476 #[ derive( Clone ) ]
14781477 struct BlockingSender {
0 commit comments