Skip to content

Commit

Permalink
Improves panic message if send() fails in streaming_unpack_snapshot() (
Browse files Browse the repository at this point in the history
…#2459)

(cherry picked from commit 427a18b)
  • Loading branch information
brooksprumo authored and mergify[bot] committed Aug 6, 2024
1 parent 8da66fa commit 60196db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion accounts-db/src/hardened_unpack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,13 @@ pub fn streaming_unpack_snapshot<A: Read>(
|_, _| {},
|entry_path_buf| {
if entry_path_buf.is_file() {
sender.send(entry_path_buf).unwrap();
let result = sender.send(entry_path_buf);
if let Err(err) = result {
panic!(
"failed to send path '{}' from unpacker to rebuilder: {err}",
err.0.display(),
);
}
}
},
)
Expand Down

0 comments on commit 60196db

Please sign in to comment.