summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-04-06 20:23:00 +0200
committermetamuffin <metamuffin@disroot.org>2023-04-06 20:23:00 +0200
commit56fb681279b2f2221eef933617d521469c6e6d83 (patch)
tree36e0fc43872e2af4e1c51b72e989d01698df1fde /src/config.rs
parentc3c3a07cae6a938534824c32573927dd7a5ece4b (diff)
downloadgnix-56fb681279b2f2221eef933617d521469c6e6d83.tar
gnix-56fb681279b2f2221eef933617d521469c6e6d83.tar.bz2
gnix-56fb681279b2f2221eef933617d521469c6e6d83.tar.zst
apply limits
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 68479e4..9e542d7 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -13,10 +13,9 @@ pub struct Config {
}
#[derive(Debug, Serialize, Deserialize)]
+#[serde(default)]
pub struct Limits {
- #[serde(default)]
pub max_incoming_connections: usize,
- #[serde(default)]
pub max_outgoing_connections: usize,
}