1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pub mod cli;
pub mod config;
pub mod consts;
pub mod environment;
pub mod prefix;
pub mod progress;
pub mod project;
pub mod repodata;
pub mod task;
pub mod util;
pub mod utils;
pub mod virtual_packages;

pub use project::Project;
use rattler_networking::retry_policies::ExponentialBackoff;

/// The default retry policy employed by pixi.
/// TODO: At some point we might want to make this configurable.
pub fn default_retry_policy() -> ExponentialBackoff {
    ExponentialBackoff::builder().build_with_max_retries(3)
}