Skip to content

Commit

Permalink
fix: lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohsen Haghgoo committed Oct 14, 2024
1 parent c417858 commit 04508a9
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions pkg/eventmanager/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ func NewWriteKeyGeneratedEvent(ctx context.Context, ev *internalevent.WriteKeyGe
}

return &internalevent.Event{
EventName: internalevent.EventName_EVENT_NAME_WRITE_KEY_GENERATED,
Time: timestamppb.New(time.Now()),
EventName: internalevent.EventName_EVENT_NAME_WRITE_KEY_GENERATED,
Time: timestamppb.New(time.Now()),
//nolint:contextcheck //We use ctx just for extract tracer carrier.

Check failure on line 19 in pkg/eventmanager/init.go

View workflow job for this annotation

GitHub Actions / build

directive `//nolint:contextcheck //We use ctx just for extract tracer carrier.` is unused for linter "contextcheck" (nolintlint)
TracerCarrier: otela.GetCarrierFromContext(ctx),
Payload: &internalevent.Event_WriteKeyGeneratedEvent{WriteKeyGeneratedEvent: ev},
}
Expand All @@ -26,10 +27,10 @@ func NewUserCreatedEvent(ctx context.Context, ev *internalevent.UserCreatedEvent
ctx = context.Background()
}

//nolint:contextcheck //We use ctx just for extract tracer carrier.
return &internalevent.Event{
EventName: internalevent.EventName_EVENT_NAME_USER_CREATED,
Time: timestamppb.New(time.Now()),
EventName: internalevent.EventName_EVENT_NAME_USER_CREATED,
Time: timestamppb.New(time.Now()),
//nolint:contextcheck //We use ctx just for extract tracer carrier.

Check failure on line 33 in pkg/eventmanager/init.go

View workflow job for this annotation

GitHub Actions / build

directive `//nolint:contextcheck //We use ctx just for extract tracer carrier.` is unused for linter "contextcheck" (nolintlint)
TracerCarrier: otela.GetCarrierFromContext(ctx),
Payload: &internalevent.Event_UserCreatedEvent{UserCreatedEvent: ev},
}
Expand All @@ -40,10 +41,10 @@ func NewProjectCreatedEvent(ctx context.Context, ev *internalevent.ProjectCreate
ctx = context.Background()
}

//nolint:contextcheck //We use ctx just for extract tracer carrier.
return &internalevent.Event{
EventName: internalevent.EventName_EVENT_NAME_PROJECT_CREATED,
Time: timestamppb.New(time.Now()),
EventName: internalevent.EventName_EVENT_NAME_PROJECT_CREATED,
Time: timestamppb.New(time.Now()),
//nolint:contextcheck //We use ctx just for extract tracer carrier.

Check failure on line 47 in pkg/eventmanager/init.go

View workflow job for this annotation

GitHub Actions / build

directive `//nolint:contextcheck //We use ctx just for extract tracer carrier.` is unused for linter "contextcheck" (nolintlint)
TracerCarrier: otela.GetCarrierFromContext(ctx),
Payload: &internalevent.Event_ProjectCreatedEvent{ProjectCreatedEvent: ev},
}
Expand All @@ -54,10 +55,10 @@ func NewTaskCreatedEvent(ctx context.Context, ev *internalevent.TaskCreatedEvent
ctx = context.Background()
}

//nolint:contextcheck //We use ctx just for extract tracer carrier.
return &internalevent.Event{
EventName: internalevent.EventName_EVENT_NAME_TASK_CREATED,
Time: timestamppb.New(time.Now()),
EventName: internalevent.EventName_EVENT_NAME_TASK_CREATED,
Time: timestamppb.New(time.Now()),
//nolint:contextcheck //We use ctx just for extract tracer carrier.

Check failure on line 61 in pkg/eventmanager/init.go

View workflow job for this annotation

GitHub Actions / build

directive `//nolint:contextcheck //We use ctx just for extract tracer carrier.` is unused for linter "contextcheck" (nolintlint)
TracerCarrier: otela.GetCarrierFromContext(ctx),
Payload: &internalevent.Event_TaskCreatedEvent{TaskCreatedEvent: ev},
}
Expand Down

0 comments on commit 04508a9

Please sign in to comment.