Skip to content

Commit

Permalink
change default to disable lease cache
Browse files Browse the repository at this point in the history
  • Loading branch information
leshow committed Sep 9, 2024
1 parent a253f28 commit 182ab02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
# packets: 6
# secs: 5
#
# (default 25) The cache_threshold statement takes one integer parameter with
# (default 0) The cache_threshold statement takes one integer parameter with
# allowed values between 0 (disabled) and 100. This parameter expresses the
# percentage of the total lease time, measured from the beginning,
# during which a client's attempt to renew its lease will result
# in getting the already assigned lease, rather than an extended lease.
#
# cache_threshold: 25
# cache_threshold: 0
#
# Dora binds to inaddr_any, if an interface is specified dora will filter
# all traffic not from this interface.
Expand Down
2 changes: 1 addition & 1 deletion libs/config/src/wire/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub const fn default_rapid_commit() -> bool {
}

pub fn default_cache_threshold() -> u32 {
25
0
}

impl From<MinMax> for LeaseTime {
Expand Down

0 comments on commit 182ab02

Please sign in to comment.