Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-wang-cb committed May 1, 2024
1 parent 6566283 commit 4eb83ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion op-node/rollup/derive/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ func BatchReader(r io.Reader) (func() (*BatchData, error), error) {
// If the bits equal to 2, then it is a brotli reader
} else if compressionType[0]&0x0F == 2 {
// remove the first byte by reading it
r.Read(make([]byte, 1))
_, err := r.Read(make([]byte, 1))
if err != nil {
return nil ,err
}
reader = func(r io.Reader) (io.Reader, error) {
return brotli.NewReader(r), nil
}
Expand Down

0 comments on commit 4eb83ea

Please sign in to comment.