Skip to content

Commit cfc540f

Browse files
committed
fix(rivetkit-core): cap SerializeState shutdown timeout at 15s
1 parent f4dbc84 commit cfc540f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rivetkit-rust/packages/rivetkit-core/src/actor

rivetkit-rust/packages/rivetkit-core/src/actor/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ use crate::websocket::WebSocket;
7070
pub type ActionDispatchResult = std::result::Result<Vec<u8>, ActionDispatchError>;
7171
pub type HttpDispatchResult = Result<Response>;
7272

73-
const SERIALIZE_STATE_SHUTDOWN_SANITY_CAP: Duration = Duration::from_secs(30);
73+
const SERIALIZE_STATE_SHUTDOWN_SANITY_CAP: Duration = Duration::from_secs(15);
7474
#[cfg(test)]
7575
const LONG_SHUTDOWN_DRAIN_WARNING_THRESHOLD: Duration = Duration::from_secs(1);
7676
const INSPECTOR_SERIALIZE_STATE_INTERVAL: Duration = Duration::from_millis(50);

0 commit comments

Comments
 (0)