@@ -14,7 +14,7 @@ pub async fn handle_event(event: Event, stats_repository: &Repository) {
14
14
Event :: UdpRequestBanned { .. } => {
15
15
stats_repository. increase_udp_requests_banned ( ) . await ;
16
16
}
17
- Event :: UdpIncomingRequest { context } => match context. client_socket_addr ( ) . ip ( ) {
17
+ Event :: UdpRequestReceived { context } => match context. client_socket_addr ( ) . ip ( ) {
18
18
std:: net:: IpAddr :: V4 ( _) => {
19
19
stats_repository. increase_udp4_requests ( ) . await ;
20
20
}
@@ -48,7 +48,7 @@ pub async fn handle_event(event: Event, stats_repository: &Repository) {
48
48
}
49
49
} ,
50
50
} ,
51
- Event :: UdpResponse {
51
+ Event :: UdpResponseSent {
52
52
context,
53
53
kind,
54
54
req_processing_time,
@@ -149,7 +149,7 @@ mod tests {
149
149
let stats_repository = Repository :: new ( ) ;
150
150
151
151
handle_event (
152
- Event :: UdpIncomingRequest {
152
+ Event :: UdpRequestReceived {
153
153
context : ConnectionContext :: new (
154
154
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 195 ) ) , 8080 ) ,
155
155
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 196 ) ) , 6969 ) ,
@@ -267,7 +267,7 @@ mod tests {
267
267
let stats_repository = Repository :: new ( ) ;
268
268
269
269
handle_event (
270
- Event :: UdpResponse {
270
+ Event :: UdpResponseSent {
271
271
context : ConnectionContext :: new (
272
272
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 195 ) ) , 8080 ) ,
273
273
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 196 ) ) , 6969 ) ,
@@ -374,7 +374,7 @@ mod tests {
374
374
let stats_repository = Repository :: new ( ) ;
375
375
376
376
handle_event (
377
- Event :: UdpResponse {
377
+ Event :: UdpResponseSent {
378
378
context : ConnectionContext :: new (
379
379
SocketAddr :: new ( IpAddr :: V6 ( Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 203 , 0 , 113 , 195 ) ) , 8080 ) ,
380
380
SocketAddr :: new ( IpAddr :: V6 ( Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 203 , 0 , 113 , 196 ) ) , 6969 ) ,
0 commit comments