From 92d8835d4eba8654e4e2549899e0bca451aa55b9 Mon Sep 17 00:00:00 2001 From: Artem Date: Sun, 8 Sep 2024 12:28:41 +0300 Subject: [PATCH] Fix: empty fallback URL --- pkg/indexer/receiver/receiver.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/indexer/receiver/receiver.go b/pkg/indexer/receiver/receiver.go index 0262186..71bb756 100644 --- a/pkg/indexer/receiver/receiver.go +++ b/pkg/indexer/receiver/receiver.go @@ -61,8 +61,7 @@ func NewReceiver(cfg config.Config, ds map[string]ddConfig.DataSource) (*Receive wg: new(sync.WaitGroup), } - fallbackDs, ok := ds["fallback"] - if ok { + if fallbackDs, ok := ds["fallback"]; ok && fallbackDs.URL != "" { receiver.fallbackAPI = NewNode(fallbackDs) }