Skip to content

Commit

Permalink
Fix: empty fallback URL
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Sep 8, 2024
1 parent bc011a9 commit 92d8835
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/indexer/receiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 92d8835

Please sign in to comment.