summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2019-02-10 18:41:44 -0600
committerStuart Stock <stuart@int08h.com>2019-02-10 18:41:44 -0600
commit177372f63a33b25a075c4cba446319929950b0f8 (patch)
tree5f274bf2f4874a6dc66770c71cf1a036432f122f /src/config
parent62e6dd64a276dbf8e10cbe6a4111f0cfb98d163f (diff)
downloadroughenough-177372f63a33b25a075c4cba446319929950b0f8.zip
initial version of client response mangling
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mod.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 70da38e..1d1d149 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -22,20 +22,20 @@
//! such as files or environment variables.
//!
+mod environment;
+mod file;
+mod memory;
+
use std::net::SocketAddr;
use std::time::Duration;
-mod file;
-pub use self::file::FileConfig;
-
-mod environment;
pub use self::environment::EnvironmentConfig;
-
-mod memory;
+pub use self::file::FileConfig;
pub use self::memory::MemoryConfig;
use crate::key::KmsProtection;
use crate::Error;
+use crate::SEED_LENGTH;
/// Maximum number of requests to process in one batch and include the the Merkle tree.
pub const DEFAULT_BATCH_SIZE: u8 = 64;
@@ -172,6 +172,7 @@ pub fn is_valid_config(cfg: &Box<dyn ServerConfig>) -> bool {
);
is_valid = false;
}
+
if cfg.fault_percentage() > 50 {
error!("fault_percentage {} is invalid; valid range 0-50", cfg.fault_percentage());
is_valid = false;