Closed Shnatsel closed 3 years ago
Currently cargo supply-chain panics if an API call fails because of this .unwrap():
cargo supply-chain
.unwrap()
https://github.com/rust-secure-code/cargo-supply-chain/blob/c960bff32e41827a5116922e9f9aa1d2c7abe2b6/src/publishers.rs#L94-L101
We should retry the request a few times instead of panicking.
Took a crack at this.
Done in #27, requests are now retried with exponential backoff.
Currently
cargo supply-chain
panics if an API call fails because of this.unwrap()
:https://github.com/rust-secure-code/cargo-supply-chain/blob/c960bff32e41827a5116922e9f9aa1d2c7abe2b6/src/publishers.rs#L94-L101
We should retry the request a few times instead of panicking.