refactor to chunk index and harden sender to not send on already sending transfers
This commit is contained in:
@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user