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

wip/ignore: Test out deadline with grpc #569

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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