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

Method AddSendAttempt

api/pkg/entities/message.go:220–225  ·  view source on GitHub ↗

AddSendAttempt configures a Message for sending

(timestamp time.Time)

Source from the content-addressed store, hash-verified

218
219// AddSendAttempt configures a Message for sending
220func (message *Message) AddSendAttempt(timestamp time.Time) *Message {
221 message.Status = MessageStatusSending
222 message.LastAttemptedAt = &timestamp
223 message.updateOrderTimestamp(timestamp)
224 return message
225}
226
227func (message *Message) updateOrderTimestamp(timestamp time.Time) {
228 if timestamp.UnixNano() > message.OrderTimestamp.UnixNano() {

Callers 1

HandleMessageSendingMethod · 0.80

Calls 1

updateOrderTimestampMethod · 0.95

Tested by

no test coverage detected