From c30870516f80dc7dcad0f5179211ede1dde30802 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 7 May 2024 21:21:18 +0800 Subject: [PATCH] chore: update mailbox size --- src/biz/actix_ws/server/rt_actor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/biz/actix_ws/server/rt_actor.rs b/src/biz/actix_ws/server/rt_actor.rs index 9479cf4d..4471aae0 100644 --- a/src/biz/actix_ws/server/rt_actor.rs +++ b/src/biz/actix_ws/server/rt_actor.rs @@ -34,7 +34,7 @@ where type Context = Context; fn started(&mut self, ctx: &mut Self::Context) { - ctx.set_mailbox_capacity(3000); + ctx.set_mailbox_capacity(6000); } } impl actix::Supervised for RealtimeServerActor @@ -44,7 +44,7 @@ where { fn restarting(&mut self, ctx: &mut Context>) { error!("realtime server is restarting"); - ctx.set_mailbox_capacity(3000); + ctx.set_mailbox_capacity(6000); } }