Skip to content
Myr

Quit immediately if the channel::send call failed

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent 762f551 · Browse files · 1 file+6 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−4 removed

  • other:+6 added−4 removed

1 file+6 added−4 removed

modified:src/walk.rs+6 added-4 removed
371 unmodified lines
372 return ignore::WalkState::Continue;373 }374 }375376 // TODO: take care of the unwrap call377 tx_thread378 .send(WorkerResult::Entry(entry_path.to_owned()))376 let send_result = tx_thread377 .send(WorkerResult::Entry(entry_path.to_owned()));379 .unwrap();378379 if !send_result.is_ok() {380 return ignore::WalkState::Quit;381 }382383 ignore::WalkState::Continue384 })385 });386}