aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-08-09 15:13:10 +0200
committerHimbeer <himbeer@disroot.org>2024-08-09 15:13:10 +0200
commit676655a4f1f868a93b0a005a3f1a27faea9d2af2 (patch)
tree33cec6d3adf4d0a373f97083a8244a142976589e
parentfcb1981c2f62d29acda35aa31852103db108bc24 (diff)
Lower BACKOFF to safe 30 seconds
30 minutes is too much because it can prevent other events from being processed in real-time. Also DNS resolutions should only be attempted if the DHCPv6 client reports a healthy connection, so this program shouldn't have to wait for the connection to be initialized properly.
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 81962c7..5d0c8b1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -15,7 +15,7 @@ use sysinfo::{ProcessExt, Signal, System, SystemExt};
use thiserror::Error;
const MAX_ATTEMPTS: usize = 3;
-const BACKOFF: u64 = 900;
+const BACKOFF: u64 = 30;
#[derive(Debug, Error)]
pub enum Error {