We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ebcb74 commit b8a2e67Copy full SHA for b8a2e67
pkg/edition/java/config/config.go
@@ -8,6 +8,7 @@ import (
8
"go.minekube.com/gate/pkg/util/configutil"
9
"go.minekube.com/gate/pkg/util/favicon"
10
"go.minekube.com/gate/pkg/util/validation"
11
+ "time"
12
)
13
14
// DefaultConfig is a default Config.
@@ -37,8 +38,8 @@ var DefaultConfig = Config{
37
38
Try: []string{},
39
ForcedHosts: map[string][]string{},
40
FailoverOnUnexpectedServerDisconnect: true,
- ConnectionTimeout: 5000,
41
- ReadTimeout: 30000,
+ ConnectionTimeout: configutil.Duration(5000 * time.Millisecond),
42
+ ReadTimeout: configutil.Duration(30000 * time.Millisecond),
43
Quota: Quota{
44
Connections: QuotaSettings{
45
Enabled: true,
0 commit comments