Skip to content

Commit

Permalink
Remove unused lastSyncs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsonnentag committed Nov 10, 2023
1 parent c40fb92 commit 3e95b85
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/automerge-repo/src/synchronizer/DocSynchronizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ export class DocSynchronizer extends Synchronizer {
/** Sync state for each peer we've communicated with (including inactive peers) */
#syncStates: Record<PeerId, A.SyncState> = {}

#lastSyncs: Record<PeerId, LastSync> = {}

#pendingSyncMessages: Array<PendingMessage> = []

#syncStarted = false
Expand Down Expand Up @@ -372,13 +370,6 @@ export class DocSynchronizer extends Synchronizer {
)

this.#setSyncState(message.senderId, newSyncState)
if (newSyncState.theirHeads != null) {
this.#lastSyncs[message.senderId] = {
heads: newSyncState.theirHeads,
at: received,
dirty: true,
}
}

// respond to just this peer (as required)
this.#sendSyncMessage(message.senderId, doc)
Expand Down

0 comments on commit 3e95b85

Please sign in to comment.