File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,6 @@ async fn main() {
237
237
238
238
let timer = tokio:: time:: interval ( Duration :: from_secs ( 1 ) ) ;
239
239
let mut ticker = stream:: iter ( 0 ..max_tick) . cycle ( ) . zip ( timer) ;
240
-
241
240
let mut signals = signal_stream ( ) ;
242
241
243
242
loop {
@@ -271,9 +270,9 @@ async fn main() {
271
270
bytes += n as u64 ;
272
271
connection. bytes += n as u64 ;
273
272
connection. failed = 0 ;
274
- return true ;
273
+ true
275
274
} ,
276
- Err ( ref e) if e. kind( ) == std:: io:: ErrorKind :: Interrupted => { } ,
275
+ Err ( ref e) if e. kind( ) == std:: io:: ErrorKind :: Interrupted => { true } ,
277
276
Err ( mut e) => {
278
277
if e. kind( ) == std:: io:: ErrorKind :: WouldBlock {
279
278
connection. failed += 1 ;
@@ -291,10 +290,10 @@ async fn main() {
291
290
e,
292
291
num_clients
293
292
) ;
293
+
294
+ false
294
295
}
295
296
}
296
-
297
- false
298
297
} ) ;
299
298
}
300
299
Some ( client) = listeners. next( ) , if num_clients < max_clients => {
You can’t perform that action at this time.
0 commit comments