mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-18 00:26:37 +00:00
Refactor: Extract new mod error
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
8bda7eadf5
commit
d2914cca42
3 changed files with 145 additions and 138 deletions
|
@ -16,7 +16,9 @@ use percent_encoding::{
|
|||
use tokio::sync::OnceCell;
|
||||
|
||||
mod request;
|
||||
pub use request::{GhApiContextError, GhApiError, GhGraphQLErrors};
|
||||
|
||||
mod error;
|
||||
pub use error::{GhApiContextError, GhApiError, GhGraphQLErrors};
|
||||
|
||||
/// default retry duration if x-ratelimit-reset is not found in response header
|
||||
const DEFAULT_RETRY_DURATION: Duration = Duration::from_secs(10 * 60);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue