Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Merge 08effb6 into 85ae7d6
Browse files Browse the repository at this point in the history
  • Loading branch information
katrogan committed May 31, 2023
2 parents 85ae7d6 + 08effb6 commit 120c0be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions events/event_recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ type eventRecorder struct {
}

func (r *eventRecorder) sinkEvent(ctx context.Context, event proto.Message) error {
deadline := time.Now().Add(10 * time.Minute)
ctx, cancelCtx := context.WithDeadline(ctx, deadline)
defer cancelCtx()
startTime := time.Now()

err := r.eventSink.Sink(ctx, event)
Expand Down

0 comments on commit 120c0be

Please sign in to comment.