Attempt to improve mbox limits

This commit is contained in:
William Brown 2018-11-26 08:15:16 +10:00
parent 00a86583a9
commit 2e554833db
3 changed files with 12 additions and 4 deletions

View file

@ -33,6 +33,12 @@ pub struct EventLog {}
impl Actor for EventLog {
type Context = SyncContext<Self>;
/*
fn started(&mut self, ctx: &mut Self::Context) {
ctx.set_mailbox_capacity(1 << 31);
}
*/
}
// What messages can we be sent. Basically this is all the possible

View file

@ -183,9 +183,5 @@ fn main() {
.start();
log_event!(log_addr, "Starting rsidm on http://127.0.0.1:8080");
// curl --header "Content-Type: application/json" --request POST --data '{"name":"xyz","number":3}' http://127.0.0.1:8080/manual
// all the needed routes / views
let _ = sys.run();
}

View file

@ -94,6 +94,12 @@ impl QueryServer {
impl Actor for QueryServer {
type Context = SyncContext<Self>;
/*
fn started(&mut self, ctx: &mut Self::Context) {
ctx.set_mailbox_capacity(1 << 31);
}
*/
}
// The server only recieves "Event" structures, which