MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / Delivered

Method Delivered

api/pkg/entities/message.go:180–190  ·  view source on GitHub ↗

Delivered registers a message as delivered

(timestamp time.Time)

Source from the content-addressed store, hash-verified

178
179// Delivered registers a message as delivered
180func (message *Message) Delivered(timestamp time.Time) *Message {
181 message.DeliveredAt = &timestamp
182 message.Status = MessageStatusDelivered
183 if message.SendDuration == nil {
184 sendDuration := timestamp.UnixNano() - message.RequestReceivedAt.UnixNano()
185 message.SendDuration = &sendDuration
186
187 }
188 message.updateOrderTimestamp(timestamp)
189 return message
190}
191
192// AddSendAttemptCount increments the send attempt count of a message
193func (message *Message) AddSendAttemptCount() *Message {

Callers 1

Calls 1

updateOrderTimestampMethod · 0.95

Tested by

no test coverage detected