Skip to content

Commit

Permalink
error in logic with correlation id
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveromahony committed Dec 6, 2024
1 parent 8dd5a9a commit 6537ce5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/file/file_manager_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func (fms *FileManagerService) UpdateOverview(
) error {
const maxAttempts = 5
correlationID := logger.GetCorrelationID(ctx)
var requestCorrelationID slog.Attr

// error case for the UpdateOverview attempts
if iteration > maxAttempts {
Expand All @@ -104,7 +103,7 @@ func (fms *FileManagerService) UpdateOverview(
request := &mpi.UpdateOverviewRequest{
MessageMeta: &mpi.MessageMeta{
MessageId: uuid.NewString(),
CorrelationId: requestCorrelationID.Value.String(),
CorrelationId: correlationID,
Timestamp: timestamppb.Now(),
},
Overview: &mpi.FileOverview{
Expand Down

0 comments on commit 6537ce5

Please sign in to comment.