Skip to content

Commit 7cba636

Browse files
Update incremental-benchmark/src/Main.hs
Co-authored-by: coot <coot@coot.me>
1 parent dfe0dd3 commit 7cba636

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

incremental-benchmark/src/Main.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,10 @@ encodeIncremental _experiment msg = Write.toLazyByteString cbor
226226
where
227227
cbor = case msg of
228228
MsgReq () -> CBOR.encodeListLen 1 <> CBOR.encodeWord 0
229-
MsgResp resp
230-
| BlockCBOR bs <- resp -> CBOR.encodeListLen 2 <> CBOR.encodeWord 1 <> CBOR.encodePreEncoded bs
231-
| otherwise -> error "impossible"
229+
MsgResp resp ->
230+
case resp of
231+
BlockCBOR bs -> CBOR.encodeListLen 2 <> CBOR.encodeWord 1 <> CBOR.encodePreEncoded bs
232+
Block {} -> error "impossible"
232233
MsgDone -> CBOR.encodeListLen 1 <> CBOR.encodeWord 2
233234

234235

0 commit comments

Comments
 (0)