Skip to content

Commit

Permalink
Fix: nil map panic fix for fluent bit retry method
Browse files Browse the repository at this point in the history
Signed-off-by: jay-dee7 <jasdeepsingh.uppal@gmail.com>
  • Loading branch information
jay-dee7 committed Oct 28, 2021
1 parent 41be7b8 commit c6ef926
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions telemetry/fluent-bit/fluent_bit.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ func New(config *config.RegistryConfig) (FluentBit, error) {
}

fbClient := &fluentBit{
client: httpClient,
config: config,
wg: sync.WaitGroup{},
gate: make(chan struct{}, 5),
client: httpClient,
config: config,
wg: sync.WaitGroup{},
gate: make(chan struct{}, 5),
retryMessages: make(map[string]retryLogMsg),
}

go fbClient.retry()
Expand Down

0 comments on commit c6ef926

Please sign in to comment.