port to contact4 (not using events yet)

This commit is contained in:
Green Sky
2025-03-10 15:09:45 +01:00
parent 7a54552bd2
commit dacda24390
18 changed files with 133 additions and 122 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#include <solanaceae/contact/contact_model3.hpp>
#include <solanaceae/contact/fwd.hpp>
#include <solanaceae/object_store/object_store.hpp>
#include "./components.hpp"
@@ -50,7 +50,7 @@ struct ChunkPicker {
private: // TODO: properly sort
// updates participating_unfinished
void updateParticipation(
Contact3Handle c,
ContactHandle4 c,
ObjectRegistry& objreg
);
public:
@@ -66,7 +66,7 @@ struct ChunkPicker {
};
// returns list of chunks to request
[[nodiscard]] std::vector<ContentChunkR> updateChunkRequests(
Contact3Handle c,
ContactHandle4 c,
ObjectRegistry& objreg,
const ReceivingTransfers& rt,
const size_t open_requests