|
@@ -1,5 +1,5 @@
|
|
|
#[global_allocator]
|
|
|
-static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
|
|
+static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
|
|
|
|
|
|
#[macro_use]
|
|
|
extern crate serde_derive;
|
|
@@ -123,6 +123,7 @@ async fn main() -> std::io::Result<()> {
|
|
|
.bind("techempower", "0.0.0.0:8080", move || {
|
|
|
HttpService::build()
|
|
|
.keep_alive(KeepAlive::Os)
|
|
|
+ .client_timeout(0)
|
|
|
.h1(map_config(
|
|
|
App::new()
|
|
|
.data_factory(|| PgConnection::connect(DB_URL))
|