Skip to content

Commit

Permalink
uncommenting shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mitali-salvi committed May 29, 2024
1 parent 46fed7a commit ab01933
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions receiver/awscontainerinsightreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ func (acir *awsContainerInsightReceiver) Shutdown(context.Context) error {
if acir.efaSysfsScraper != nil {
acir.efaSysfsScraper.Shutdown()
}
//if acir.decorators != nil {
// for i := len(acir.decorators) - 1; i >= 0; i-- {
// errs = errors.Join(errs, acir.decorators[i].Shutdown())
// }
//}
if acir.decorators != nil {
for i := len(acir.decorators) - 1; i >= 0; i-- {
errs = errors.Join(errs, acir.decorators[i].Shutdown())
}
}

if acir.podResourcesStore != nil {
acir.podResourcesStore.Shutdown()
Expand Down

0 comments on commit ab01933

Please sign in to comment.