Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-dambovaliev committed Feb 22, 2024
1 parent c536ea2 commit 69fe220
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tm2/pkg/bft/wal/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,14 +499,7 @@ func (enc *WALWriter) Write(v TimedWALMessage) error {

line64 := base64stdnp.EncodeToString(line)
line64 += "\n"

input := []byte(line64)

n, err := enc.wr.Write(input)

if len(input) != n {
return fmt.Errorf("could not write msg: %+v bytes", input)
}
_, err := enc.wr.Write([]byte(line64))

return err
}
Expand Down

0 comments on commit 69fe220

Please sign in to comment.