Skip to content

Commit

Permalink
message: expose delivering nsqd address as string
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Dec 23, 2014
1 parent 4e74fa1 commit da9a41a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ func (c *Conn) readLoop() {
goto exit
}
msg.Delegate = delegate
msg.NSQDAddress = c.String()

atomic.AddInt64(&c.rdyCount, -1)
atomic.AddInt64(&c.messagesInFlight, 1)
Expand Down
2 changes: 2 additions & 0 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type Message struct {
Timestamp int64
Attempts uint16

NSQDAddress string

Delegate MessageDelegate

autoResponseDisabled int32
Expand Down

0 comments on commit da9a41a

Please sign in to comment.