protocol/service: Remove unnecessary arg

This commit is contained in:
Lorenz Leutgeb 2026-02-13 12:29:10 +01:00
parent 94d7799ffe
commit 53a1286901
No known key found for this signature in database
1 changed files with 5 additions and 6 deletions

View File

@ -971,14 +971,13 @@ where
refs: NonEmpty<RefsAt>,
scope: Scope,
timeout: time::Duration,
channel: Option<chan::Sender<FetchResult>>,
) -> bool {
match self.refs_status_of(rid, refs, &scope) {
Ok(status) => {
if status.want.is_empty() {
debug!(target: "service", "Skipping fetch for {rid}, all refs are already in storage");
} else {
self.fetch(rid, from, status.want, timeout, channel);
self.fetch(rid, from, status.want, timeout, None);
return true;
}
}
@ -1206,11 +1205,11 @@ where
debug!(target: "service", "Dequeued fetch for {} from {}", rid, from);
// Channel is `None` in both cases since they will already be
// registered with the fetcher service.
if let Some(refs) = NonEmpty::from_vec(refs_at.clone()) {
self.fetch_refs_at(rid, from, refs, scope, timeout, None);
self.fetch_refs_at(rid, from, refs, scope, timeout);
} else {
// Channel is `None` since they will already be
// registered with the fetcher service.
self.fetch(rid, from, refs_at, timeout, None);
}
}
@ -1664,7 +1663,7 @@ where
return Ok(relay);
};
// Finally, start the fetch.
self.fetch_refs_at(message.rid, remote.id, refs, scope, FETCH_TIMEOUT, None);
self.fetch_refs_at(message.rid, remote.id, refs, scope, FETCH_TIMEOUT);
return Ok(relay);
}