mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
protocol/fetcher: Intro RefsToFetch
Using empty `Vec`s to mean "all refs" can be confusing. Avoid the chance of confusion by introduction of a new type that clearly describes which refs should be fetched.
This commit is contained in:
@@ -359,7 +359,7 @@ impl radicle::node::Handle for Handle {
|
||||
json!({
|
||||
"rid": rid,
|
||||
"from": active.from(),
|
||||
"refsAt": active.refs_at(),
|
||||
"refsAt": active.refs(),
|
||||
})
|
||||
}).collect::<Vec<_>>(),
|
||||
"queue": fetcher_state.queued_fetches().iter().map(|(node, queue)| {
|
||||
@@ -368,7 +368,7 @@ impl radicle::node::Handle for Handle {
|
||||
"queue": queue.iter().map(|fetch| {
|
||||
json!({
|
||||
"rid": fetch.rid,
|
||||
"refsAt": fetch.refs_at,
|
||||
"refsAt": fetch.refs,
|
||||
})
|
||||
}).collect::<Vec<_>>()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user