mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
aquatic_udp: more work on splitting mio and glommio logic
This commit is contained in:
parent
4a8651e1c6
commit
3aebdfda8a
5 changed files with 134 additions and 120 deletions
|
|
@ -7,7 +7,7 @@ use crate::config::Config;
|
|||
pub mod handlers;
|
||||
pub mod network;
|
||||
|
||||
fn start_workers(config: Config) {
|
||||
pub fn run(config: Config) -> anyhow::Result<()> {
|
||||
let num_peers = config.socket_workers + config.request_workers;
|
||||
|
||||
let request_mesh_builder = MeshBuilder::partial(num_peers, 1024);
|
||||
|
|
@ -31,4 +31,6 @@ fn start_workers(config: Config) {
|
|||
response_mesh_builder.clone(),
|
||||
);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue