summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-06-24 14:00:51 +0300
committerWolfy-J <[email protected]>2019-06-24 14:00:51 +0300
commit3293b9d9009f04eb874de90ccb82e33fe76a5e07 (patch)
tree17105b61be3d81047229e8107f1c65a31f9da91d /service/http/config.go
parented7ba40a04f32d04f1e565fe0fb973aa0e0574a9 (diff)
golint
Diffstat (limited to 'service/http/config.go')
-rw-r--r--service/http/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/http/config.go b/service/http/config.go
index b5b18c23..c2b11c8d 100644
--- a/service/http/config.go
+++ b/service/http/config.go
@@ -53,6 +53,7 @@ type HTTP2Config struct {
MaxConcurrentStreams uint32
}
+// InitDefaults sets default values for HTTP/2 configuration.
func (cfg *HTTP2Config) InitDefaults() error {
cfg.Enabled = true
cfg.MaxConcurrentStreams = 128