Skip to content

Commit

Permalink
Merge dca79ed into c4188ac
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilander committed Feb 8, 2017
2 parents c4188ac + dca79ed commit 89f0633
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config.json
Expand Up @@ -37,7 +37,8 @@
"EnableCustomEmoji": false,
"RestrictCustomEmojiCreation": "all",
"TimeBetweenUserTypingUpdatesMilliseconds": 5000,
"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 @@ -94,6 +94,7 @@ type ServiceSettings struct {
RestrictCustomEmojiCreation *string
TimeBetweenUserTypingUpdatesMilliseconds *int64
EnableUserTypingMessages *bool
ClusterLogTimeoutMilliseconds *int
}

type ClusterSettings struct {
Expand Down Expand Up @@ -1058,6 +1059,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 89f0633

Please sign in to comment.