diff options
author | Hristo Venev <hristo@venev.name> | 2019-09-28 16:20:06 +0000 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2019-09-28 16:20:43 +0000 |
commit | 3a5552509439612accf579becc7cb85a596bd466 (patch) | |
tree | cbb6af2c4217e1ac6c57f904c9de2976e72b052d /src/manager/builder.rs | |
parent | b20d7f8b89f5e4b065b0a3fee52ece8db6f99a74 (diff) |
PeerConfig -> GlobalConfig
Diffstat (limited to 'src/manager/builder.rs')
-rw-r--r-- | src/manager/builder.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/manager/builder.rs b/src/manager/builder.rs index 9fc2291..3f3e227 100644 --- a/src/manager/builder.rs +++ b/src/manager/builder.rs @@ -47,17 +47,17 @@ pub struct ConfigBuilder<'a> { c: model::Config, err: Vec<ConfigError>, public_key: model::Key, - pc: &'a config::PeerConfig, + gc: &'a config::GlobalConfig, } impl<'a> ConfigBuilder<'a> { #[inline] - pub fn new(public_key: model::Key, pc: &'a config::PeerConfig) -> Self { + pub fn new(public_key: model::Key, gc: &'a config::GlobalConfig) -> Self { Self { c: model::Config::default(), err: vec![], public_key, - pc, + gc, } } @@ -72,11 +72,11 @@ impl<'a> ConfigBuilder<'a> { return; } - let pc = self.pc; + let gc = self.gc; let ent = insert_peer(&mut self.c, &mut self.err, s, &p.peer, |ent| { ent.psk = s.psk.clone(); ent.endpoint = Some(p.endpoint.clone()); - ent.keepalive = pc.fix_keepalive(p.keepalive); + ent.keepalive = gc.fix_keepalive(p.keepalive); }); add_peer(&mut self.err, ent, s, &p.peer) |