Skip to content

Commit

Permalink
fix lint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
pvh committed Jan 11, 2025
1 parent 34766fe commit b7d5fb3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions packages/automerge-repo/src/RemoteHeadsSubscriptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { next as A } from "@automerge/automerge/slim"
import { EventEmitter } from "eventemitter3"
import { DocumentId, PeerId } from "./types.js"
import {
Expand Down Expand Up @@ -357,11 +356,14 @@ export class RemoteHeadsSubscriptions extends EventEmitter<RemoteHeadsSubscripti
if (docRemote && docRemote.timestamp >= timestamp) {
continue
} else {
remote.set(storageId as StorageId, { timestamp, heads })
remote.set(storageId as StorageId, {
timestamp,
heads: heads as UrlHeads,
})
changedHeads.push({
documentId,
storageId: storageId as StorageId,
remoteHeads: heads,
remoteHeads: heads as UrlHeads,
timestamp,
})
}
Expand Down
1 change: 0 additions & 1 deletion packages/automerge-repo/src/storage/StorageSubsystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { keyHash, headsHash } from "./keyHash.js"
import { chunkTypeFromKey } from "./chunkTypeFromKey.js"
import * as Uuid from "uuid"
import { EventEmitter } from "eventemitter3"
import { decodeHeads, UrlHeads } from "../AutomergeUrl.js"

type StorageSubsystemEvents = {
"document-loaded": (arg: {
Expand Down

0 comments on commit b7d5fb3

Please sign in to comment.