Skip to content

Commit

Permalink
Merge pull request #210 from sebcante/fix/fix-recv-n-sent-ts-in-millis
Browse files Browse the repository at this point in the history
Fix sqs Receive Attributes to be millis
  • Loading branch information
p4tin authored Oct 15, 2019
2 parents 3a34c40 + 68acadb commit 3ac8768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/gosqs/gosqs.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,10 +860,10 @@ func getMessageResult(m *app.Message) *app.ResultMessage {
}

attrsMap := map[string]string{
"ApproximateFirstReceiveTimestamp": fmt.Sprintf("%d", m.ReceiptTime.Unix()),
"ApproximateFirstReceiveTimestamp": fmt.Sprintf("%d", m.ReceiptTime.UnixNano()/int64(time.Millisecond)),
"SenderId": app.CurrentEnvironment.AccountID,
"ApproximateReceiveCount": fmt.Sprintf("%d", m.NumberOfReceives+1),
"SentTimestamp": fmt.Sprintf("%d", time.Now().UTC().Unix()),
"SentTimestamp": fmt.Sprintf("%d", time.Now().UTC().UnixNano()/int64(time.Millisecond)),
}

var attrs []*app.ResultAttribute
Expand Down

0 comments on commit 3ac8768

Please sign in to comment.