Skip to content

Commit 91d5108

Browse files
committed
Change read message error type to Error::Socket
Because it's a socket error, we need to distinguish it from other errors. Signed-off-by: quanweiZhou <[email protected]>
1 parent acf1a6a commit 91d5108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sync/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl Client {
123123
let mut map = recver_map_orig.lock().unwrap();
124124
for (_, recver_tx) in map.iter_mut() {
125125
recver_tx
126-
.send(Err(Error::Others(format!("socket error {}", y))))
126+
.send(Err(Error::Socket(format!("socket error {}", y))))
127127
.unwrap_or_else(|e| {
128128
error!("The request has returned error {:?}", e)
129129
});

0 commit comments

Comments
 (0)