Skip to content

Commit

Permalink
Port syncing code to use conduit instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPenner committed Dec 16, 2024
1 parent 9cbc7d3 commit 439360b
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 185 deletions.
2 changes: 1 addition & 1 deletion unison-cli/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ library:
- code-page
- concurrent-output
- containers >= 0.6.3
- conduit
- cryptonite
- either
- errors
Expand All @@ -52,7 +53,6 @@ library:
- lsp >= 2.2.0.0
- lsp-types >= 2.0.2.0
- memory
- mmorph
- mtl
- network-simple
- network-uri
Expand Down
2 changes: 1 addition & 1 deletion unison-cli/src/Unison/Cli/DownloadUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ downloadProjectBranchFromShare useSquashed branch =
-- TODO: Fill this in.
let knownHashes = Set.empty
let downloadedCallback = \_ -> pure ()
result <- SyncV2.downloadEntities Share.hardCodedBaseUrl branchRef causalHashJwt knownHashes downloadedCallback
result <- SyncV2.streamDownloadEntities Share.hardCodedBaseUrl branchRef causalHashJwt knownHashes downloadedCallback
-- numDownloaded <- liftIO getNumDownloaded
let numDownloaded = 0
pure (result, numDownloaded)
Expand Down
Loading

0 comments on commit 439360b

Please sign in to comment.