lib/model, lib/protocol: Index sending/receiving debugging (#9657)

This adds guardrails to the index sending and receiving, to verify that
what we thinks is happening is what actually happens.
This commit is contained in:
Jakob Borg
2024-08-28 15:00:19 +02:00
committed by GitHub
parent feff334547
commit 42e677c055
6 changed files with 497 additions and 228 deletions
+7 -4
View File
@@ -81,13 +81,16 @@ enum Compression {
// Index and Index Update
message Index {
string folder = 1;
repeated FileInfo files = 2;
string folder = 1;
repeated FileInfo files = 2;
int64 last_sequence = 3; // the highest sequence in this batch
}
message IndexUpdate {
string folder = 1;
repeated FileInfo files = 2;
string folder = 1;
repeated FileInfo files = 2;
int64 last_sequence = 3; // the highest sequence in this batch
int64 prev_sequence = 4; // the highest sequence in the previous batch
}
message FileInfo {