From e3451371bdb68015f89c8c0f7d8ea0a19fff8df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 25 Nov 2019 20:13:29 +0100 Subject: [PATCH] hugolib: Fix recently broken timeout config --- hugolib/site.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/site.go b/hugolib/site.go index 4b4df6451..de41b8fc3 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -414,7 +414,7 @@ func newSite(cfg deps.DepsCfg) (*Site, error) { timeout := 30 * time.Second if cfg.Language.IsSet("timeout") { switch v := cfg.Language.Get("timeout").(type) { - case int: + case int64: timeout = time.Duration(v) * time.Millisecond case string: d, err := time.ParseDuration(v)