adds the ability for shards to sync with the main server regarding their caches, when pulling files from main server the shard can stream it to the client directly while downloading and add info for server to report to client regarding file locations across shards
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace LightlessSyncShared.Models;
|
||||
|
||||
public sealed record ShardFileInventoryUpdateDto
|
||||
{
|
||||
public long Sequence { get; init; }
|
||||
public bool IsFullSnapshot { get; init; }
|
||||
public List<string> Added { get; init; } = new();
|
||||
public List<string> Removed { get; init; } = new();
|
||||
}
|
||||
|
||||
public sealed record ShardFileInventoryUpdateAckDto
|
||||
{
|
||||
public long AppliedSequence { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user