small fixes

This commit is contained in:
Green Sky 2024-07-14 19:47:22 +02:00
parent 74414d0999
commit bfaed99b1e
No known key found for this signature in database

View File

@ -38,7 +38,7 @@ void chunk_picker_updates(
//std::cout << "cput :)\n"; //std::cout << "cput :)\n";
if (!c.any_of<Contact::Components::ToxGroupPeerEphemeral, Contact::Components::FT1Participation>()) { if (!c.all_of<Contact::Components::ToxGroupPeerEphemeral, Contact::Components::FT1Participation>()) {
std::cout << "cput uh nuh :(\n"; std::cout << "cput uh nuh :(\n";
cp_to_remove.push_back(c); cp_to_remove.push_back(c);
return; return;
@ -55,7 +55,7 @@ void chunk_picker_updates(
cr.view<ChunkPicker, ChunkPickerUpdateTag>().each([&cr, &os_reg, &peer_open_requests, &receiving_transfers, &nft, &cp_to_remove](const Contact3 cv, ChunkPicker& cp) { cr.view<ChunkPicker, ChunkPickerUpdateTag>().each([&cr, &os_reg, &peer_open_requests, &receiving_transfers, &nft, &cp_to_remove](const Contact3 cv, ChunkPicker& cp) {
Contact3Handle c{cr, cv}; Contact3Handle c{cr, cv};
if (!c.all_of<Contact::Components::ToxGroupPeerEphemeral, Contact::Components::FT1Participation>()) { if (!c.all_of<Contact::Components::ToxGroupPeerEphemeral, Contact::Components::FT1Participation, Components::FT1ChunkSHA1Cache, Components::FT1InfoSHA1>()) {
cp_to_remove.push_back(c); cp_to_remove.push_back(c);
return; return;
} }