Skip to content

Commit

Permalink
[chore] remove use of deprecated ReportFatalError (#31145)
Browse files Browse the repository at this point in the history
Fixes #30586
  • Loading branch information
atoulme authored Feb 9, 2024
1 parent 7a57010 commit 4ac3323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/awsfirehosereceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (fmr *firehoseReceiver) Start(_ context.Context, host component.Host) error
defer fmr.shutdownWG.Done()

if errHTTP := fmr.server.Serve(listener); errHTTP != nil && !errors.Is(errHTTP, http.ErrServerClosed) {
host.ReportFatalError(errHTTP)
fmr.settings.ReportStatus(component.NewFatalErrorEvent(errHTTP))
}
}()

Expand Down

0 comments on commit 4ac3323

Please sign in to comment.