Skip to content

Commit 4720720

Browse files
committed
[lint] minor fixes
1 parent 8448f9e commit 4720720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sms-gateway/modules/messages/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func (s *Service) Enqueue(device models.Device, message MessageIn, opts EnqueueO
241241
return state, err
242242
}
243243

244-
if err := s.cache.Set(context.Background(), device.UserID, message.ID, anys.AsPointer(modelToMessageState(msg))); err != nil {
244+
if err := s.cache.Set(context.Background(), device.UserID, msg.ExtID, anys.AsPointer(modelToMessageState(msg))); err != nil {
245245
s.logger.Warn("failed to cache message", zap.String("id", msg.ExtID), zap.Error(err))
246246
}
247247
s.metrics.IncTotal(string(msg.State))

0 commit comments

Comments
 (0)