mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 03:21:52 +00:00
hugolib: Fix recently broken timeout config
This commit is contained in:
parent
5c5231e09e
commit
e3451371bd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue