@@ -146,7 +146,7 @@ impl AnnounceService {
146146
147147 tracing:: debug!( "Sending TcpAnnounce event: {:?}" , event) ;
148148
149- http_stats_event_sender. send_event ( event) . await ;
149+ http_stats_event_sender. send ( event) . await ;
150150 }
151151 }
152152}
@@ -314,7 +314,7 @@ mod tests {
314314 impl torrust_tracker_events:: sender:: Sender for HttpStatsEventSender {
315315 type Event = Event ;
316316
317- fn send_event ( & self , event: Event ) -> BoxFuture <' static , Option <Result <usize , SendError <Event > > > > ;
317+ fn send ( & self , event: Event ) -> BoxFuture <' static , Option <Result <usize , SendError <Event > > > > ;
318318 }
319319 }
320320
@@ -390,7 +390,7 @@ mod tests {
390390
391391 let mut http_stats_event_sender_mock = MockHttpStatsEventSender :: new ( ) ;
392392 http_stats_event_sender_mock
393- . expect_send_event ( )
393+ . expect_send ( )
394394 . with ( predicate:: function ( move |event| {
395395 let mut announced_peer = peer_copy;
396396 announced_peer. peer_addr = SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 126 , 0 , 0 , 1 ) ) , 8080 ) ;
@@ -463,7 +463,7 @@ mod tests {
463463
464464 let mut http_stats_event_sender_mock = MockHttpStatsEventSender :: new ( ) ;
465465 http_stats_event_sender_mock
466- . expect_send_event ( )
466+ . expect_send ( )
467467 . with ( predicate:: function ( move |event| {
468468 let mut announced_peer = peer_copy;
469469 announced_peer. peer_addr = SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 127 , 0 , 0 , 1 ) ) , 8080 ) ;
@@ -521,7 +521,7 @@ mod tests {
521521
522522 let mut http_stats_event_sender_mock = MockHttpStatsEventSender :: new ( ) ;
523523 http_stats_event_sender_mock
524- . expect_send_event ( )
524+ . expect_send ( )
525525 . with ( predicate:: function ( move |event| {
526526 let expected_event = Event :: TcpAnnounce {
527527 connection : ConnectionContext :: new (
0 commit comments