Skip to content

Commit

Permalink
chore: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Oct 25, 2023
1 parent 2c8f2b2 commit 80c9ae3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
21 changes: 0 additions & 21 deletions dap-lib/src/client/doh_client_main.rs

This file was deleted.

9 changes: 0 additions & 9 deletions dap-lib/src/client/mod.rs

This file was deleted.

3 changes: 2 additions & 1 deletion dap-lib/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ pub const TOKEN_REFRESH_MARGIN: i64 = 120;
/// every 60 secs, token is checked. then if the refresh condition is satisfied, refresh.
/// this is to rapidly recover from the hibernation of PC on which this is working. (at most 60 secs is needed for recovery)
pub const TOKEN_REFRESH_WATCH_DELAY: i64 = 60;

/// wait for 10 secs before relogin
pub const TOKEN_RELOGIN_WAITING_SEC: u64 = 10;
/// relogin at most 5 times
pub const MAX_RELOGIN_ATTEMPTS: usize = 5;

pub const HEALTHCHECK_TARGET_FQDN: &str = "dns.google."; // client
Expand Down

0 comments on commit 80c9ae3

Please sign in to comment.