http, http_private: rename request workers to swarm workers

This commit is contained in:
Joakim Frostegård 2022-07-04 11:52:51 +02:00
parent fb2794643d
commit c89406179b
12 changed files with 31 additions and 33 deletions

View file

@ -17,7 +17,7 @@ pub struct RequestWorkerIndex(pub usize);
impl RequestWorkerIndex {
pub fn from_info_hash(config: &Config, info_hash: InfoHash) -> Self {
Self(info_hash.0[0] as usize % config.request_workers)
Self(info_hash.0[0] as usize % config.swarm_workers)
}
}