Skip to content

Commit

Permalink
Merge pull request #510 from sylr/remove-keepMessage
Browse files Browse the repository at this point in the history
Remove unsused Message.keepMessage
  • Loading branch information
ackleymi authored May 8, 2023
2 parents b7b2f17 + baa4ed3 commit 07872e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions in_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ func (state inSession) processReject(session *session, msg *Message, rej Message
}

nextState.messageStash[TypedError.ReceivedTarget] = msg
// Do not reclaim stashed message.
msg.keepMessage = true

return nextState

Expand Down
3 changes: 0 additions & 3 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ type Message struct {

// Field bytes as they appear in the raw message.
fields []TagValue

// Flag is true if this message should not be returned to pool after use.
keepMessage bool
}

// ToMessage returns the message itself.
Expand Down

0 comments on commit 07872e7

Please sign in to comment.