diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,6 +3,7 @@ package main import ( "context" "log/slog" + "time" "os" "os/signal" "path/filepath" @@ -45,7 +46,8 @@ func main() { logger.Info("config loaded", "file", flags.Config) r := resolver.New( - resolver.WithTimeout(2 * 1000 * 1000 * 1000),) + resolver.WithTimeout(2 * time.Second), + ) c, err := cache.NewCache(cfg.Cache.MaxEntries, cfg.Cache.DBPath) if err != nil { |
