diff --git a/cmd/wishlist/main.go b/cmd/wishlist/main.go index 4d6d6e4..5a3a745 100644 --- a/cmd/wishlist/main.go +++ b/cmd/wishlist/main.go @@ -130,8 +130,15 @@ var serverCmd = &cobra.Command{ go func() { for range ticker.C { log.Info("refreshing endpoints...") + ctx := context.Background() + seed, err := getSeedEndpoints(ctx) + if err != nil { + log.Error("could not get seed endpoints", "error", err) + continue + } reloaded, err := getConfigFile(path, seed) if err != nil { + log.Error("could not load configuration file", "error", err) continue } config.EndpointChan <- reloaded.Endpoints