浏览代码

不判断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();
                             });
                         }
                     });