Skip to content

Commit

Permalink
fix: major bug in buffer reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienaury committed Mar 25, 2024
1 parent 4b58ff0 commit ade529b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Types of changes
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [0.1.1]

- `Fixed` major bug in buffer reuse

## [0.1.0]

- `Added` initial version
2 changes: 1 addition & 1 deletion cmd/dam/dam.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (d *Dam) Add(data []byte) error {
return fmt.Errorf("%w", err)
}

d.buffer <- data
d.buffer <- append(make([]byte, 0, len(data)), data...)

return nil
}
Expand Down

0 comments on commit ade529b

Please sign in to comment.