chore: update mailbox size

This commit is contained in:
nathan 2024-04-09 10:10:56 +08:00
parent e9097107e5
commit c1bbcbfdd5
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ where
fn started(&mut self, ctx: &mut Self::Context) {
info!("realtime server started");
ctx.set_mailbox_capacity(1);
ctx.set_mailbox_capacity(3000);
}
}
impl<S, AC> actix::Supervised for RealtimeServerActor<S, AC>
@ -45,7 +45,7 @@ where
{
fn restarting(&mut self, ctx: &mut Context<RealtimeServerActor<S, AC>>) {
error!("realtime server is restarting");
ctx.set_mailbox_capacity(30);
ctx.set_mailbox_capacity(3000);
}
}