From 339d0a93b524f19fea3787bd5064126f2d67da68 Mon Sep 17 00:00:00 2001 From: iAmir Date: Tue, 26 Sep 2023 09:15:18 +0330 Subject: [PATCH] make server data scraper each 15 minutes --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 8e4fe3ea0..618208b57 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -27,7 +27,7 @@ type Config struct { DocsSourcesPath string `envconfig:"DOCS_SOURCES_PATH" required:"false" default:"docs/"` DocsIndexPath string `envconfig:"DOCS_INDEX_PATH" required:"false" default:"docs.bleve"` PackagesDB string `envconfig:"PACKAGES_DB" required:"false" default:"data/packages.db"` - ServerScrapeInterval time.Duration `envconfig:"SERVER_SCRAPE_INTERVAL" required:"false" default:"1h"` + ServerScrapeInterval time.Duration `envconfig:"SERVER_SCRAPE_INTERVAL" required:"false" default:"15m"` PackageSearchInterval time.Duration `envconfig:"PACKAGE_SEARCH_INTERVAL" required:"false" default:"24h"` PackageScrapeInterval time.Duration `envconfig:"PACKAGE_SCRAPE_INTERVAL" required:"false" default:"24h"` }