Skip to content

Commit

Permalink
Merge fd68056 into 432dc92
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilander committed Feb 9, 2017
2 parents 432dc92 + fd68056 commit 8862ab5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/config.json
Expand Up @@ -40,7 +40,9 @@
"AllowEditPost": "always",
"PostEditTimeLimit": 300,
"TimeBetweenUserTypingUpdatesMilliseconds": 5000,
"EnableUserTypingMessages": true
"EnableUserTypingMessages": true,
"EnableUserTypingMessages": true,
"ClusterLogTimeoutMilliseconds": 2000
},
"TeamSettings": {
"SiteName": "Mattermost",
Expand Down
3 changes: 3 additions & 0 deletions einterfaces/metrics.go
Expand Up @@ -17,6 +17,9 @@ type MetricsInterface interface {
IncrementHttpError()
ObserveHttpRequestDuration(elapsed float64)

IncrementClusterRequest()
ObserveClusterRequestDuration(elapsed float64)

IncrementLogin()
IncrementLoginFail()

Expand Down
6 changes: 6 additions & 0 deletions model/config.go
Expand Up @@ -105,6 +105,7 @@ type ServiceSettings struct {
PostEditTimeLimit *int
TimeBetweenUserTypingUpdatesMilliseconds *int64
EnableUserTypingMessages *bool
ClusterLogTimeoutMilliseconds *int
}

type ClusterSettings struct {
Expand Down Expand Up @@ -1084,6 +1085,11 @@ func (o *Config) SetDefaults() {
*o.ServiceSettings.EnableUserTypingMessages = true
}

if o.ServiceSettings.ClusterLogTimeoutMilliseconds == nil {
o.ServiceSettings.ClusterLogTimeoutMilliseconds = new(int)
*o.ServiceSettings.ClusterLogTimeoutMilliseconds = 2000
}

o.defaultWebrtcSettings()
}

Expand Down

0 comments on commit 8862ab5

Please sign in to comment.