@@ -64,7 +64,7 @@ impl Client {
64
64
let binding_address = local_bind_to. parse ( ) . context ( "binding local address" ) ?;
65
65
66
66
debug ! ( "Binding to: {local_bind_to}" ) ;
67
- let udp_client = UdpClient :: bind ( & local_bind_to) . await ;
67
+ let udp_client = UdpClient :: bind ( & local_bind_to) . await ? ;
68
68
69
69
let bound_to = udp_client. socket . local_addr ( ) . context ( "bound local address" ) ?;
70
70
debug ! ( "Bound to: {bound_to}" ) ;
@@ -88,7 +88,7 @@ impl Client {
88
88
89
89
match & self . udp_tracker_client {
90
90
Some ( client) => {
91
- client. udp_client . connect ( & tracker_socket_addr. to_string ( ) ) . await ;
91
+ client. udp_client . connect ( & tracker_socket_addr. to_string ( ) ) . await ? ;
92
92
self . remote_socket = Some ( * tracker_socket_addr) ;
93
93
Ok ( ( ) )
94
94
}
@@ -116,9 +116,9 @@ impl Client {
116
116
117
117
match & self . udp_tracker_client {
118
118
Some ( client) => {
119
- client. send ( connect_request. into ( ) ) . await ;
119
+ client. send ( connect_request. into ( ) ) . await ? ;
120
120
121
- let response = client. receive ( ) . await ;
121
+ let response = client. receive ( ) . await ? ;
122
122
123
123
debug ! ( "connection request response:\n {response:#?}" ) ;
124
124
@@ -163,9 +163,9 @@ impl Client {
163
163
164
164
match & self . udp_tracker_client {
165
165
Some ( client) => {
166
- client. send ( announce_request. into ( ) ) . await ;
166
+ client. send ( announce_request. into ( ) ) . await ? ;
167
167
168
- let response = client. receive ( ) . await ;
168
+ let response = client. receive ( ) . await ? ;
169
169
170
170
debug ! ( "announce request response:\n {response:#?}" ) ;
171
171
@@ -200,9 +200,9 @@ impl Client {
200
200
201
201
match & self . udp_tracker_client {
202
202
Some ( client) => {
203
- client. send ( scrape_request. into ( ) ) . await ;
203
+ client. send ( scrape_request. into ( ) ) . await ? ;
204
204
205
- let response = client. receive ( ) . await ;
205
+ let response = client. receive ( ) . await ? ;
206
206
207
207
debug ! ( "scrape request response:\n {response:#?}" ) ;
208
208
0 commit comments