@@ -39,12 +39,12 @@ func SyncWithFileSettings(server *Server, cfg *configuration.Configuration) { //
39
39
server .EnabledListeners = * configStorage .Dataplaneapi .EnabledListeners
40
40
}
41
41
if configStorage .Dataplaneapi != nil && configStorage .Dataplaneapi .CleanupTimeout != nil && ! misc .HasOSArg ("" , "cleanup-timeout" , "" ) {
42
- if d , err := time .ParseDuration (* configStorage .Dataplaneapi .CleanupTimeout ); err ! = nil {
42
+ if d , err := time .ParseDuration (* configStorage .Dataplaneapi .CleanupTimeout ); err = = nil {
43
43
server .CleanupTimeout = d
44
44
}
45
45
}
46
46
if configStorage .Dataplaneapi != nil && configStorage .Dataplaneapi .GracefulTimeout != nil && ! misc .HasOSArg ("" , "graceful-timeout" , "" ) {
47
- if d , err := time .ParseDuration (* configStorage .Dataplaneapi .GracefulTimeout ); err ! = nil {
47
+ if d , err := time .ParseDuration (* configStorage .Dataplaneapi .GracefulTimeout ); err = = nil {
48
48
server .GracefulTimeout = d
49
49
}
50
50
}
@@ -67,17 +67,17 @@ func SyncWithFileSettings(server *Server, cfg *configuration.Configuration) { //
67
67
server .ListenLimit = * configStorage .Dataplaneapi .ListenLimit
68
68
}
69
69
if configStorage .Dataplaneapi != nil && configStorage .Dataplaneapi .KeepAlive != nil && ! misc .HasOSArg ("" , "keep-alive" , "" ) {
70
- if d , err := time .ParseDuration (* configStorage .Dataplaneapi .KeepAlive ); err ! = nil {
70
+ if d , err := time .ParseDuration (* configStorage .Dataplaneapi .KeepAlive ); err = = nil {
71
71
server .KeepAlive = d
72
72
}
73
73
}
74
74
if configStorage .Dataplaneapi != nil && configStorage .Dataplaneapi .ReadTimeout != nil && ! misc .HasOSArg ("" , "read-timeout" , "" ) {
75
- if d , err := time .ParseDuration (* configStorage .Dataplaneapi .ReadTimeout ); err ! = nil {
75
+ if d , err := time .ParseDuration (* configStorage .Dataplaneapi .ReadTimeout ); err = = nil {
76
76
server .ReadTimeout = d
77
77
}
78
78
}
79
79
if configStorage .Dataplaneapi != nil && configStorage .Dataplaneapi .WriteTimeout != nil && ! misc .HasOSArg ("" , "write-timeout" , "" ) {
80
- if d , err := time .ParseDuration (* configStorage .Dataplaneapi .WriteTimeout ); err ! = nil {
80
+ if d , err := time .ParseDuration (* configStorage .Dataplaneapi .WriteTimeout ); err = = nil {
81
81
server .WriteTimeout = d
82
82
}
83
83
}
@@ -100,17 +100,17 @@ func SyncWithFileSettings(server *Server, cfg *configuration.Configuration) { //
100
100
server .TLSListenLimit = * configStorage .Dataplaneapi .TLS .TLSListenLimit
101
101
}
102
102
if configStorage .Dataplaneapi != nil && configStorage .Dataplaneapi .TLS != nil && configStorage .Dataplaneapi .TLS .TLSKeepAlive != nil && ! misc .HasOSArg ("" , "tls-keep-alive" , "" ) {
103
- if d , err := time .ParseDuration (* configStorage .Dataplaneapi .TLS .TLSKeepAlive ); err ! = nil {
103
+ if d , err := time .ParseDuration (* configStorage .Dataplaneapi .TLS .TLSKeepAlive ); err = = nil {
104
104
server .TLSKeepAlive = d
105
105
}
106
106
}
107
107
if configStorage .Dataplaneapi != nil && configStorage .Dataplaneapi .TLS != nil && configStorage .Dataplaneapi .TLS .TLSReadTimeout != nil && ! misc .HasOSArg ("" , "tls-read-timeout" , "" ) {
108
- if d , err := time .ParseDuration (* configStorage .Dataplaneapi .TLS .TLSReadTimeout ); err ! = nil {
108
+ if d , err := time .ParseDuration (* configStorage .Dataplaneapi .TLS .TLSReadTimeout ); err = = nil {
109
109
server .TLSReadTimeout = d
110
110
}
111
111
}
112
112
if configStorage .Dataplaneapi != nil && configStorage .Dataplaneapi .TLS != nil && configStorage .Dataplaneapi .TLS .TLSWriteTimeout != nil && ! misc .HasOSArg ("" , "tls-write-timeout" , "" ) {
113
- if d , err := time .ParseDuration (* configStorage .Dataplaneapi .TLS .TLSWriteTimeout ); err ! = nil {
113
+ if d , err := time .ParseDuration (* configStorage .Dataplaneapi .TLS .TLSWriteTimeout ); err = = nil {
114
114
server .TLSWriteTimeout = d
115
115
}
116
116
}
0 commit comments