expire freepass bandwidth + stagger db flushes

This commit is contained in:
Jędrzej Stuczyński
2024-03-01 15:28:39 +00:00
parent 9d74c22f9b
commit bfc495ef29
14 changed files with 422 additions and 172 deletions
+7 -6
View File
@@ -254,13 +254,14 @@ impl<St> Gateway<St> {
self.config.gateway.clients_port,
);
websocket::Listener::new(
listening_address,
Arc::clone(&self.identity_keypair),
self.config.gateway.only_coconut_credentials,
let shared_state = websocket::SharedHandlerState {
coconut_verifier,
)
.start(
local_identity: Arc::clone(&self.identity_keypair),
only_coconut_credentials: self.config.gateway.only_coconut_credentials,
bandwidth_cfg: (&self.config).into(),
};
websocket::Listener::new(listening_address, shared_state).start(
forwarding_channel,
self.storage.clone(),
active_clients_store,