aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs12
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;