Skip to content

Commit 07872e7

Browse files
authored
Merge pull request #510 from sylr/remove-keepMessage
Remove unsused Message.keepMessage
2 parents b7b2f17 + baa4ed3 commit 07872e7

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

in_session.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ func (state inSession) processReject(session *session, msg *Message, rej Message
290290
}
291291

292292
nextState.messageStash[TypedError.ReceivedTarget] = msg
293-
// Do not reclaim stashed message.
294-
msg.keepMessage = true
295293

296294
return nextState
297295

message.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ type Message struct {
104104

105105
// Field bytes as they appear in the raw message.
106106
fields []TagValue
107-
108-
// Flag is true if this message should not be returned to pool after use.
109-
keepMessage bool
110107
}
111108

112109
// ToMessage returns the message itself.

0 commit comments

Comments
 (0)