Skip to content

Commit d9ca9df

Browse files
committed
Fix the queueID when updating heartbeat
1 parent 5f539be commit d9ca9df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/pkg/services/event_dispatcher_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (dispatcher *EventDispatcher) DispatchWithTimeout(ctx context.Context, even
7878
return queueID, dispatcher.tracer.WrapErrorSpan(span, stacktrace.Propagate(err, msg))
7979
}
8080

81-
if _, err = dispatcher.queue.Enqueue(ctx, task, timeout); err != nil {
81+
if queueID, err = dispatcher.queue.Enqueue(ctx, task, timeout); err != nil {
8282
msg := fmt.Sprintf("cannot enqueue event with ID [%s] and type [%s]", event.ID(), event.Type())
8383
return queueID, dispatcher.tracer.WrapErrorSpan(span, stacktrace.Propagate(err, msg))
8484
}

0 commit comments

Comments
 (0)