Skip to content

Commit ab088d1

Browse files
committed
Fix asyncErrorChannel deadlock on shutdown
Signed-off-by: WHOIM1205 <rathourprateek8@gmail.com>
1 parent ba2b601 commit ab088d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

otelcol/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func NewCollector(set CollectorSettings) (*Collector, error) {
144144
// Per signal.Notify documentation, a size of the channel equaled with
145145
// the number of signals getting notified on is recommended.
146146
signalsChannel: make(chan os.Signal, 3),
147-
asyncErrorChannel: make(chan error),
147+
asyncErrorChannel: make(chan error, 1),
148148
configProvider: configProvider,
149149
bc: bc,
150150
updateConfigProviderLogger: cc.SetCore,

0 commit comments

Comments
 (0)