Skip to content

Commit 85b6a87

Browse files
authored
Merge pull request #1163 from IntersectMBO/nm/lbs-utxo-query-output
Use lazy ByteString for writing out result of utxo query
2 parents 7587b48 + 21322c7 commit 85b6a87

File tree

1 file changed

+2
-2
lines changed
  • cardano-cli/src/Cardano/CLI/EraBased/Query

1 file changed

+2
-2
lines changed

cardano-cli/src/Cardano/CLI/EraBased/Query/Run.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import Data.Aeson as Aeson
7171
import Data.Aeson qualified as A
7272
import Data.Aeson.Encode.Pretty (encodePretty)
7373
import Data.Bifunctor (Bifunctor (..))
74-
import Data.ByteString.Base16 qualified as Base16
74+
import Data.ByteString.Base16.Lazy qualified as Base16
7575
import Data.ByteString.Char8 qualified as C8
7676
import Data.ByteString.Lazy qualified as BS
7777
import Data.ByteString.Lazy.Char8 qualified as LBS
@@ -1189,7 +1189,7 @@ writeFilteredUTxOs sbe format mOutFile utxo =
11891189
. writeLazyByteStringOutput mOutFile
11901190
$ format
11911191
& ( id
1192-
. Vary.on (\FormatCbor -> LBS.fromStrict . Base16.encode . CBOR.serialize' $ toLedgerUTxO sbe utxo)
1192+
. Vary.on (\FormatCbor -> Base16.encode . CBOR.serialize $ toLedgerUTxO sbe utxo)
11931193
. Vary.on (\FormatJson -> encodePretty utxo)
11941194
. Vary.on (\FormatText -> strictTextToLazyBytestring $ filteredUTxOsToText sbe utxo)
11951195
$ Vary.exhaustiveCase

0 commit comments

Comments
 (0)