diff options
author | Aaron Hill <aa1ronham@gmail.com> | 2018-10-14 20:23:45 -0400 |
---|---|---|
committer | Aaron Hill <aa1ronham@gmail.com> | 2018-10-17 21:19:10 -0400 |
commit | 1f09d2797c4061e2f15146af061a24a71c1e10af (patch) | |
tree | 97371be709998131261839a0cce46e1304f467d3 /src/config/file.rs | |
parent | 204cb428b38c119922ed596f27b3f36a6b33366f (diff) | |
download | roughenough-1f09d2797c4061e2f15146af061a24a71c1e10af.zip |
Add MemoryConfig
Diffstat (limited to 'src/config/file.rs')
-rw-r--r-- | src/config/file.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/config/file.rs b/src/config/file.rs index 440c78c..bef0f1e 100644 --- a/src/config/file.rs +++ b/src/config/file.rs @@ -16,7 +16,6 @@ extern crate hex; use std::fs::File; use std::io::Read; -use std::net::SocketAddr; use std::time::Duration; use yaml_rust::YamlLoader; @@ -126,13 +125,6 @@ impl ServerConfig for FileConfig { self.status_interval } - fn socket_addr(&self) -> Result<SocketAddr, Error> { - let addr = format!("{}:{}", self.interface, self.port); - match addr.parse() { - Ok(v) => Ok(v), - Err(_) => Err(Error::InvalidConfiguration(addr)), - } - } fn key_protection(&self) -> &KeyProtection { &self.key_protection |