Skip to content

Commit

Permalink
Delete accidentally included thing in the HTTP example (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
amh4r authored Mar 6, 2025
1 parent e7e6e9c commit ecd9f15
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions examples/http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,6 @@ import (
"github.com/inngest/inngestgo/step"
)

func foo() {
client, err := inngestgo.NewClient(inngestgo.ClientOpts{
AppID: "core",
})
if err != nil {
panic(err)
}

_, err = inngestgo.CreateFunction(
client,
inngestgo.FunctionOpts{
ID: "account-created",
},
// Run on every api/account.created event.
inngestgo.EventTrigger("api/account.created", nil),
AccountCreated,
)
if err != nil {
panic(err)
}

http.ListenAndServe(":8080", client.Serve())
}

func main() {
c, err := inngestgo.NewClient(inngestgo.ClientOpts{
AppID: "billing",
Expand Down

0 comments on commit ecd9f15

Please sign in to comment.