update code level
This commit is contained in:
@@ -204,6 +204,8 @@ async fn main() -> std::io::Result<()> {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
.bind(server_address)?
|
.bind(server_address)?
|
||||||
|
// 限制worker数量为2个,减少系统资源占用
|
||||||
|
.workers(3)
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user