Skip to content

Commit

Permalink
mod: update message date key
Browse files Browse the repository at this point in the history
  • Loading branch information
toannhu committed Jun 24, 2024
1 parent b7cebdd commit 27e9b42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/app/indexer/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func (s *Service) insertData(
Uint32("op_id", message.OperationID).
Msg("parse message payload")
}
message = message.WithDateKey()
}

if err := func() error {
Expand Down Expand Up @@ -197,6 +196,8 @@ func (s *Service) uniqMessages(ctx context.Context, transactions []*core.Transac
continue
}
}

msg = msg.WithDateKey()
if len(msg.Hash) > 0 {
msg.HashHex = hex.EncodeToString(msg.Hash)
}
Expand Down

0 comments on commit 27e9b42

Please sign in to comment.