Skip to content

Commit c24c1c6

Browse files
committed
Reduce the storage sync interval
This should reduce network bandwidth / egress utilization, which Redis Cloud is complaining about.
1 parent 36beaf6 commit c24c1c6

File tree

1 file changed

+1
-1
lines changed
  • crates/sshx-server/src/state

1 file changed

+1
-1
lines changed

crates/sshx-server/src/state/mesh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use tracing::error;
1212
use crate::session::Session;
1313

1414
/// Interval for syncing the latest session state into persistent storage.
15-
const STORAGE_SYNC_INTERVAL: Duration = Duration::from_secs(10);
15+
const STORAGE_SYNC_INTERVAL: Duration = Duration::from_secs(20);
1616

1717
/// Length of time a key lasts in Redis before it is expired.
1818
const STORAGE_EXPIRY: Duration = Duration::from_secs(300);

0 commit comments

Comments
 (0)