aboutsummaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-03-19 10:41:42 +0200
committerHristo Venev <hristo@venev.name>2019-03-19 10:41:42 +0200
commitddd8e2d68bed2bd9efb8379a345bd99eaebd3795 (patch)
treed0459f74d743363b5aab75bf59d6d121c60924c8 /src/config.rs
parent7eef7ad915a608f5cad510d079b9240ed11698f1 (diff)
refresh_period = ... -> refresh_sec = ...
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index cd874da..2effacb 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -27,8 +27,8 @@ pub struct PeerConfig {
#[derive(serde_derive::Serialize, serde_derive::Deserialize, Clone, PartialEq, Eq, Debug)]
pub struct UpdateConfig {
// Number of seconds between regular updates.
- #[serde(default = "default_refresh")]
- pub refresh_period: u32,
+ #[serde(default = "default_refresh_sec")]
+ pub refresh_sec: u32,
}
#[serde(deny_unknown_fields)]
@@ -64,6 +64,6 @@ fn default_max_keepalive() -> u32 {
0
}
-fn default_refresh() -> u32 {
+fn default_refresh_sec() -> u32 {
1200
}