refactor to chunk index and harden sender to not send on already sending transfers

This commit is contained in:
2023-08-18 20:01:54 +02:00
parent 96669e0202
commit 04875e999f
2 changed files with 42 additions and 21 deletions

View File

@ -53,7 +53,8 @@ class SHA1_NGCFT1 : public RegistryMessageModelEventI, public NGCFT1EventI {
struct Chunk {
ContentHandle content;
uint64_t offset_into_file;
size_t chunk_index; // <.< remove offset_into_file
//uint64_t offset_into_file;
// or data?
// if memmapped, this would be just a pointer
};
@ -75,7 +76,8 @@ class SHA1_NGCFT1 : public RegistryMessageModelEventI, public NGCFT1EventI {
struct Chunk {
ContentHandle content;
uint64_t offset_into_file;
size_t chunk_index;
//uint64_t offset_into_file;
// or data?
// if memmapped, this would be just a pointer
};