Skip to content

Commit f91dc10

Browse files
committed
Remove debugging
1 parent 691eaa9 commit f91dc10

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

unison-cli/src/Unison/Share/SyncV2.hs

+5-10
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ import Control.Monad.Except
1717
import Control.Monad.Reader (ask)
1818
import Control.Monad.ST (ST, stToIO)
1919
import Control.Monad.State
20+
import Data.Attoparsec.ByteString qualified as A
21+
import Data.Attoparsec.ByteString.Char8 qualified as A8
2022
import Data.ByteString qualified as BS
2123
import Data.ByteString.Lazy qualified as BL
24+
import Data.Conduit.Attoparsec qualified as C
2225
import Data.Conduit.List qualified as C
2326
import Data.Conduit.Zlib qualified as C
2427
import Data.Graph qualified as Graph
@@ -43,7 +46,6 @@ import Unison.Auth.HTTPClient qualified as Auth
4346
import Unison.Cli.Monad (Cli)
4447
import Unison.Cli.Monad qualified as Cli
4548
import Unison.Codebase qualified as Codebase
46-
import Unison.Debug qualified as Debug
4749
import Unison.Hash32 (Hash32)
4850
import Unison.Prelude
4951
import Unison.Share.API.Hash qualified as Share
@@ -55,17 +57,13 @@ import Unison.Sync.Common qualified as Sync
5557
import Unison.Sync.EntityValidation qualified as EV
5658
import Unison.Sync.Types qualified as Share
5759
import Unison.Sync.Types qualified as Sync
60+
import Unison.SyncV2.API (Routes (downloadEntitiesStream))
61+
import Unison.SyncV2.API qualified as SyncV2
5862
import Unison.SyncV2.Types (CBORBytes)
5963
import Unison.SyncV2.Types qualified as SyncV2
6064
import Unison.Util.Servant.CBOR qualified as CBOR
6165
import Unison.Util.Timing qualified as Timing
6266
import UnliftIO qualified as IO
63-
import Unison.SyncV2.API (Routes (downloadEntitiesStream))
64-
import Unison.SyncV2.API qualified as SyncV2
65-
import Data.Attoparsec.ByteString qualified as A
66-
import Data.Attoparsec.ByteString.Char8 qualified as A8
67-
import Data.Conduit.Attoparsec qualified as C
68-
6967

7068
type Stream i o = ConduitT i o StreamM ()
7169

@@ -150,7 +148,6 @@ syncFromCodeserver shouldValidate unisonShareUrl branchRef hashJwt knownHashes _
150148
(Cli.runTransaction (Q.entityLocation hash)) >>= \case
151149
Just Q.EntityInMainStorage -> pure $ Right ()
152150
_ -> do
153-
Debug.debugLogM Debug.Temp $ "Kicking off sync request"
154151
Timing.time "Entity Download" $ do
155152
liftIO . C.runResourceT . runExceptT $ httpStreamEntities
156153
authHTTPClient
@@ -417,12 +414,10 @@ SyncV2.Routes
417414
-- You MUST consume the stream within the callback, it will be closed when the callback returns.
418415
withConduit :: forall r. Servant.ClientEnv -> (Stream () SyncV2.DownloadEntitiesChunk -> StreamM r) -> Servant.ClientM (Servant.SourceIO SyncV2.DownloadEntitiesChunk) -> StreamM r
419416
withConduit clientEnv callback clientM = do
420-
Debug.debugLogM Debug.Temp $ "Running clientM"
421417
ExceptT $ withRunInIO \runInIO -> do
422418
Servant.withClientM clientM clientEnv $ \case
423419
Left err -> pure . Left . TransportError $ (handleClientError clientEnv err)
424420
Right sourceT -> do
425-
Debug.debugLogM Debug.Temp $ "Converting sourceIO to conduit"
426421
conduit <- liftIO $ Servant.fromSourceIO sourceT
427422
(runInIO . runExceptT $ callback conduit)
428423

0 commit comments

Comments
 (0)