radicle-heartwood-lfs/radicle-node
Fintan Halpenny bb4ed84b95
node: duplicate fetching logic respects RefsAt
Two concurrent fetches can occur from the same peer, while also being
for a different set of references. This was seen in the
`test_outdated_sigrefs` test. Alice would have an ongoing fetch from
Eve, and concurrently, Eve will create a new issue -- thus creating a
new `RefsAt` message -- and Alice would attempt to fetch this.

The previous logic would only check that Alice is fetching from Eve
and ignore the new updates -- meaning the test could fail. However, if
the `RefsAt` are checked then the other fetch can be recognised as
new, and queue it.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-03-09 13:43:08 +01:00
..
src node: duplicate fetching logic respects RefsAt 2024-03-09 13:43:08 +01:00
Cargo.toml node: Upgrade dependencies 2024-02-26 11:47:03 +01:00
Dockerfile docker: Make Dockerfile easier to read 2023-08-03 13:43:20 +02:00