,,
This commit is contained in:
parent
0c75d3b4c2
commit
3dab48f58b
1 changed files with 1141 additions and 1376 deletions
|
|
@ -91,6 +91,7 @@ for (const [count, delivery] of [
|
|||
fetchedAfter.push(after);
|
||||
return {
|
||||
headEventId: available,
|
||||
endEventId: available,
|
||||
events: events.filter(
|
||||
(event) =>
|
||||
event.eventId > after &&
|
||||
|
|
@ -108,7 +109,6 @@ for (const [count, delivery] of [
|
|||
>()
|
||||
};
|
||||
const syncer = new Syncer(
|
||||
"device",
|
||||
logger,
|
||||
database,
|
||||
settings,
|
||||
|
|
@ -122,6 +122,7 @@ for (const [count, delivery] of [
|
|||
const deliver = async (event: EventRecord) => {
|
||||
await websocket.onRemoteVaultUpdateReceived.triggerAsync({
|
||||
headEventId: event.eventId,
|
||||
endEventId: event.eventId,
|
||||
// Payloads are deliberately inconsistent with HTTP. The socket
|
||||
// only wakes the loop; it cannot supply reconciliation state.
|
||||
events: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue