Panic on `rustic check`
Rustic panics when I check my repo:
❯ rustic check
[00:00:00] reading index... ████████████████████████████████████████ 113/113
[00:00:00] listing packs...
[00:00:00] reading snapshots... ████████████████████████████████████████ 174/174
The application panicked (crashed).
Message: called `Result::unwrap()` on an `Err` value: "SendError(..)"
Location: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustic_core-0.2.0/src/blob/tree.rs:500
When I enable backtraces it doesn't for some strage reason:
❯ RUST_BACKTRACE=1 rustic check
[00:00:00] reading index... ████████████████████████████████████████ 113/113
[00:00:01] listing packs...
[00:00:00] reading snapshots... ████████████████████████████████████████ 174/174
error: blob e3a8ce3ac99b27096ae79e8ccc86321764515ba2a8a21e978ae609ed587a13f8 not found in index
❯ rustic --version
rustic 0.7.0
Installed via cargo binstall
Hello,
Thanks taking the time to fill an issue! I am sorry for my late response.
I am thinking that crates/core/src/blob/tree.rs:691 caused this.
But I'd like to understand better what led to this issue.
Would you be able to describe your setup? If you are able to reproduce this from the creation of a new repository to this panic, this would allow us to reproduce the issue and help understand why it happened.
On a side note, the unwrap will at some point be replaced by some clean error handling. some unecessary unwrap remain for now as rustic is at its early stage.