Skip to content

Commit

Permalink
fix: pass application context to adapter setup (#519)
Browse files Browse the repository at this point in the history
Signed-off-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Calum Murray <cmurray@redhat.com>
  • Loading branch information
knative-prow-robot and Cali0707 authored May 13, 2024
1 parent eb298d2 commit e63a830
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/receive_adapter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ package main

import (
"knative.dev/eventing/pkg/adapter/v2"
"knative.dev/pkg/signals"

githubadapter "knative.dev/eventing-github/pkg/adapter"
)

func main() {
adapter.Main("githubsource", githubadapter.NewEnvConfig, githubadapter.NewAdapter)
ctx := signals.NewContext()
ctx = adapter.WithInjectorEnabled(ctx)

adapter.MainWithContext(ctx, "githubsource", githubadapter.NewEnvConfig, githubadapter.NewAdapter)
}

0 comments on commit e63a830

Please sign in to comment.