Skip to content

Commit bfbecd6

Browse files
committed
verify worker exit when signal_exit is_cancelled
1 parent 63ae338 commit bfbecd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tx-pool/src/verify_mgr.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ impl Worker {
7676

7777
async fn process_inner(&mut self) {
7878
loop {
79+
if self.exit_signal.is_cancelled() {
80+
info!("Verify worker::process_inner exit_signal is cancelled");
81+
return;
82+
}
7983
if self.status != ChunkCommand::Resume {
8084
return;
8185
}
@@ -170,7 +174,6 @@ impl VerifyMgr {
170174
}
171175

172176
fn send_child_command(&self, command: ChunkCommand) {
173-
//info!("[verify-test] verify-mgr send child command: {:?}", command);
174177
for w in &self.workers {
175178
if let Err(err) = w.0.send(command.clone()) {
176179
info!("send worker command failed, error: {}", err);

0 commit comments

Comments
 (0)