From 91809db229237075cb3be5f26739723de3635d23 Mon Sep 17 00:00:00 2001 From: Sviatoslav Boichuk Date: Thu, 5 Dec 2024 16:13:43 +0200 Subject: [PATCH] Fix Group create to shard: set infras capacity from config instead of hardcoded value --- src/cgw_connection_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cgw_connection_server.rs b/src/cgw_connection_server.rs index efc606d..9a406ef 100644 --- a/src/cgw_connection_server.rs +++ b/src/cgw_connection_server.rs @@ -852,7 +852,7 @@ impl CGWConnectionServer { // DB stuff - create group for remote shards to be aware of change let group = CGWDBInfrastructureGroup { id: gid, - reserved_size: 1000i32, + reserved_size: infras_capacity, actual_size: 0i32, }; match self