Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: verify worker exit when signal_exit is_cancelled #4612

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tx-pool/src/verify_mgr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ impl Worker {

async fn process_inner(&mut self) {
loop {
if self.exit_signal.is_cancelled() {
info!("Verify worker::process_inner exit_signal is cancelled");
return;
}
if self.status != ChunkCommand::Resume {
return;
}
Expand Down Expand Up @@ -170,7 +174,6 @@ impl VerifyMgr {
}

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