Skip to content

Commit

Permalink
fix: pass application context to adapter setup (#518)
Browse files Browse the repository at this point in the history
Signed-off-by: Calum Murray <[email protected]>
Co-authored-by: Calum Murray <[email protected]>
  • Loading branch information
knative-prow-robot and Cali0707 authored May 14, 2024
1 parent ea8db4b commit 87e0149
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 87e0149

Please sign in to comment.