properly account for open requests when determining how much to request

This commit is contained in:
2024-07-07 12:44:17 +02:00
parent eaaf798661
commit 266cddf816
4 changed files with 56 additions and 93 deletions

View File

@@ -49,7 +49,11 @@ namespace Components {
struct FT1ChunkSHA1Requested {
// requested chunks with a timer since last request
entt::dense_map<size_t, float> chunks;
struct Entry {
float timer {0.f};
Contact3 c {entt::null};
};
entt::dense_map<size_t, Entry> chunks;
};
// TODO: once announce is shipped, remove the "Suspected"