mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
ws: rename request workers to swarm workers
This commit is contained in:
parent
224d50e98b
commit
12fc8bcf1e
5 changed files with 18 additions and 18 deletions
|
|
@ -352,7 +352,7 @@ impl ConnectionReader {
|
|||
)
|
||||
.await
|
||||
.unwrap();
|
||||
::log::info!("sent message to request worker");
|
||||
::log::info!("sent message to swarm worker");
|
||||
} else {
|
||||
self.send_error_response("Info hash not allowed".into(), Some(info_hash))
|
||||
.await?;
|
||||
|
|
@ -404,7 +404,7 @@ impl ConnectionReader {
|
|||
.send_to(consumer_index, (meta, in_message))
|
||||
.await
|
||||
.unwrap();
|
||||
::log::info!("sent message to request worker");
|
||||
::log::info!("sent message to swarm worker");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -541,7 +541,7 @@ impl ConnectionWriter {
|
|||
}
|
||||
|
||||
fn calculate_in_message_consumer_index(config: &Config, info_hash: InfoHash) -> usize {
|
||||
(info_hash.0[0] as usize) % config.request_workers
|
||||
(info_hash.0[0] as usize) % config.swarm_workers
|
||||
}
|
||||
|
||||
fn create_tcp_listener(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue