From c6ef92668fb9d49904c2e93ed06eed63bcd404a2 Mon Sep 17 00:00:00 2001 From: jay-dee7 Date: Thu, 28 Oct 2021 21:21:02 +0530 Subject: [PATCH] Fix: nil map panic fix for fluent bit retry method Signed-off-by: jay-dee7 --- telemetry/fluent-bit/fluent_bit.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/telemetry/fluent-bit/fluent_bit.go b/telemetry/fluent-bit/fluent_bit.go index 09deca20..deeeaeaf 100644 --- a/telemetry/fluent-bit/fluent_bit.go +++ b/telemetry/fluent-bit/fluent_bit.go @@ -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()