Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
nslaughter committed May 20, 2024
1 parent e41b3ca commit 80cdcbe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions receiver/azureeventhubreceiver/eventhubhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,11 @@ func newEventhubHandler(config *Config, settings receiver.CreateSettings) *event
// return newMockEventhubHandler(config, settings)
}

eh := &eventhubHandler{
return &eventhubHandler{
config: config,
settings: settings,
useProcessor: false,
}
// BOOKMARK: this is blowing up right now
if err := eh.init(context.TODO()); err != nil {
panic(err)
}
return eh
}

func (h *eventhubHandler) init(ctx context.Context) error {
Expand Down

0 comments on commit 80cdcbe

Please sign in to comment.