mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05: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
|
timeout := 30 * time.Second
|
||||||
if cfg.Language.IsSet("timeout") {
|
if cfg.Language.IsSet("timeout") {
|
||||||
switch v := cfg.Language.Get("timeout").(type) {
|
switch v := cfg.Language.Get("timeout").(type) {
|
||||||
case int:
|
case int64:
|
||||||
timeout = time.Duration(v) * time.Millisecond
|
timeout = time.Duration(v) * time.Millisecond
|
||||||
case string:
|
case string:
|
||||||
d, err := time.ParseDuration(v)
|
d, err := time.ParseDuration(v)
|
||||||
|
|
Loading…
Reference in a new issue