Skip to content

Commit

Permalink
feat: expose EnqueueTime
Browse files Browse the repository at this point in the history
  • Loading branch information
zenghur committed Jan 4, 2019
1 parent 183c650 commit 485be35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ func (c *Consumer) OnReceive(queue *Queue, receiveMsg *ReceiveMessage) {
m := new(M)
m.MessageBody = receiveMsg.MessageBody
m.MessageBodyMD5 = receiveMsg.MessageBodyMD5
m.EnqueueTime = receiveMsg.EnqueueTime
errChan <- queue.OnReceive(m)
}()

Expand Down
1 change: 1 addition & 0 deletions queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
type M struct {
MessageBody string
MessageBodyMD5 string
EnqueueTime int64
}

// Handler 消息处理函数模板
Expand Down

0 comments on commit 485be35

Please sign in to comment.