Skip to content

Commit

Permalink
consistency note to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
heckj committed Apr 13, 2024
1 parent 0544362 commit 963bae7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/AutomergeRepo/Repo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ public actor Repo {
/// The list does not reflect deleted or unavailable documents that have been requested, but may return
/// Ids for documents still being creating, stored, or transferring from a peer.
public func documentIds() async -> [DocumentId] {
// FIXME: make sure that the handles are all fully "resolved" to an end state
// _before_ attempting to filter them - we're capturing a snapshot in time here...
handles.values
.filter { handle in
handle.state == .ready || handle.state == .loading || handle.state == .requesting
Expand Down

0 comments on commit 963bae7

Please sign in to comment.