Skip to content

Commit

Permalink
fix: remove fixed size for buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Jan 16, 2025
1 parent 10d6a0d commit 47e8ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/zmq/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (b *basePub) HWM() int {
// - Message body (varies based on provided parts)
// - Sequence number (4 Bytes).
func (b *basePub) makeTopicMsg(parts ...any) []byte {
result := make([]byte, 0, 64)
result := make([]byte, 0)

// Append Topic ID to the message (2 Bytes)
result = append(result, b.topic.Bytes()...)
Expand Down

0 comments on commit 47e8ef3

Please sign in to comment.