diff options
| author | Nathan Perry <np@nathanperry.dev> | 2020-09-26 14:58:05 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2020-09-26 14:58:05 -0400 |
| commit | ee1162278e54b0ecfc3de6d544bc206b9698e06d (patch) | |
| tree | fb392df9408b52e295ace13794061e24f67ab73a | |
| parent | b5c6a0e5a65d13c639830296400ceb176f64c716 (diff) | |
move items around, remove unneeded log
| -rw-r--r-- | src/main.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs index 6c2d651..259a652 100644 --- a/src/main.rs +++ b/src/main.rs @@ -53,15 +53,13 @@ mod bot; pub type Error = anyhow::Error; pub type Result<T> = anyhow::Result<T>; -fn main() { - const BACKOFF_FACTOR: f64 = 2.0; - const MAX_BACKOFFS: usize = 3; - const BACKOFF_INIT: f64 = 100.0; - - const MIN_RUN_DURATION: Duration = Duration::from_secs(120); +const BACKOFF_FACTOR: f64 = 2.0; +const MAX_BACKOFFS: usize = 3; +const BACKOFF_INIT: f64 = 100.0; - info!("starting"); +const MIN_RUN_DURATION: Duration = Duration::from_secs(120); +fn main() { log_setup::init().expect("initializing logging"); let mut backoff_count: usize = 0; |
