Skip to content

Commit

Permalink
feat: update valueSize
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmtszr committed May 28, 2024
1 parent 41cda82 commit 3587cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (msg *Message) keySize() int {
}

func (msg *Message) valueSize() int {
return 4 + len(msg.Value)
return sizeofBytes(msg.Value)
}

type IncomingMessage struct {
Expand Down

0 comments on commit 3587cd1

Please sign in to comment.