Closed lkatalin closed 1 year ago
It comes up six times for me. This definitely needs investigating.
For another data point, I don't see this locally using the main branch. So on average, I guess it happens 3.33 times. :smile:
Nevermind. After I added the log message, it comes up 8 times for me! Average is 6 now!
I discovered the cause of this. It looks like it's a deliberate multi-threading default for HttpServer
. If we want to change it, we can specify the number of workers like so:
server.workers(3).bind(bind_args)?.run().await
It could make sense to pass this in a config value at some point, or we can just leave it on default.
It is probably not ideal to have this service come up four times.