Skip to content
Permalink
Browse files
hugolib: Fix recently broken timeout config
  • Loading branch information
bep committed Nov 25, 2019
1 parent 5c5231e commit e3451371bdb68015f89c8c0f7d8ea0a19fff8df5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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)

0 comments on commit e345137

Please sign in to comment.