def decode.frame.header.result
import mylsm-lsm-store@0.6.0.1/src/ByteWal.bend as ByteWalimport Base
import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Wal
954# Dispatches a parsed header to the full bounded frame decoder.
955def decode.frame.header.result(
956 result: Result<&1, &1, Wal.Error, FrameHeader>
957) -> Result<&1, &1, Wal.Error, Batch>:
958 match result:
959 case Fail{error}:
960 Fail{error}
961 case Done{header}:
962 decode.frame.header(header)