@@ -22,7 +22,7 @@ pub async fn handle_event(event: Event, stats_repository: &Repository) {
22
22
stats_repository. increase_udp6_requests ( ) . await ;
23
23
}
24
24
} ,
25
- Event :: UdpRequest { context, kind } => match kind {
25
+ Event :: UdpRequestAccepted { context, kind } => match kind {
26
26
UdpRequestKind :: Connect => match context. client_socket_addr ( ) . ip ( ) {
27
27
std:: net:: IpAddr :: V4 ( _) => {
28
28
stats_repository. increase_udp4_connections ( ) . await ;
@@ -204,7 +204,7 @@ mod tests {
204
204
let stats_repository = Repository :: new ( ) ;
205
205
206
206
handle_event (
207
- Event :: UdpRequest {
207
+ Event :: UdpRequestAccepted {
208
208
context : ConnectionContext :: new (
209
209
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 195 ) ) , 8080 ) ,
210
210
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 196 ) ) , 6969 ) ,
@@ -225,7 +225,7 @@ mod tests {
225
225
let stats_repository = Repository :: new ( ) ;
226
226
227
227
handle_event (
228
- Event :: UdpRequest {
228
+ Event :: UdpRequestAccepted {
229
229
context : ConnectionContext :: new (
230
230
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 195 ) ) , 8080 ) ,
231
231
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 196 ) ) , 6969 ) ,
@@ -246,7 +246,7 @@ mod tests {
246
246
let stats_repository = Repository :: new ( ) ;
247
247
248
248
handle_event (
249
- Event :: UdpRequest {
249
+ Event :: UdpRequestAccepted {
250
250
context : ConnectionContext :: new (
251
251
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 195 ) ) , 8080 ) ,
252
252
SocketAddr :: new ( IpAddr :: V4 ( Ipv4Addr :: new ( 203 , 0 , 113 , 196 ) ) , 6969 ) ,
@@ -311,7 +311,7 @@ mod tests {
311
311
let stats_repository = Repository :: new ( ) ;
312
312
313
313
handle_event (
314
- Event :: UdpRequest {
314
+ Event :: UdpRequestAccepted {
315
315
context : ConnectionContext :: new (
316
316
SocketAddr :: new ( IpAddr :: V6 ( Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 203 , 0 , 113 , 195 ) ) , 8080 ) ,
317
317
SocketAddr :: new ( IpAddr :: V6 ( Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 203 , 0 , 113 , 196 ) ) , 6969 ) ,
@@ -332,7 +332,7 @@ mod tests {
332
332
let stats_repository = Repository :: new ( ) ;
333
333
334
334
handle_event (
335
- Event :: UdpRequest {
335
+ Event :: UdpRequestAccepted {
336
336
context : ConnectionContext :: new (
337
337
SocketAddr :: new ( IpAddr :: V6 ( Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 203 , 0 , 113 , 195 ) ) , 8080 ) ,
338
338
SocketAddr :: new ( IpAddr :: V6 ( Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 203 , 0 , 113 , 196 ) ) , 6969 ) ,
@@ -353,7 +353,7 @@ mod tests {
353
353
let stats_repository = Repository :: new ( ) ;
354
354
355
355
handle_event (
356
- Event :: UdpRequest {
356
+ Event :: UdpRequestAccepted {
357
357
context : ConnectionContext :: new (
358
358
SocketAddr :: new ( IpAddr :: V6 ( Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 203 , 0 , 113 , 195 ) ) , 8080 ) ,
359
359
SocketAddr :: new ( IpAddr :: V6 ( Ipv6Addr :: new ( 0 , 0 , 0 , 0 , 203 , 0 , 113 , 196 ) ) , 6969 ) ,
0 commit comments