소스 검색

不判断len

skyfffire 1 년 전
부모
커밋
353a681a5e
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      exchanges/src/socket_tool.rs

+ 1 - 3
exchanges/src/socket_tool.rs

@@ -205,9 +205,7 @@ impl AbstractWsMode {
                             spawn(async move {
                                 let read = r.lock().await;
 
-                                if read.is_empty() {
-                                    read.unbounded_send(t.clone()).unwrap();
-                                }
+                                read.unbounded_send(t.clone()).unwrap();
                             });
                         }
                     });