Skip to content

Commit 388d03e

Browse files
committed
remove peer from stratum workder if send message failed
1 parent 8d087cf commit 388d03e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/stratum/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ impl StratumImpl {
228228
}
229229
Err(e) => {
230230
warn!(target: "stratum", "Unexpected transport error: {:?}", e);
231+
hup_peers.insert(**addr);
231232
}
232233
Ok(_) => {}
233234
}

0 commit comments

Comments
 (0)