summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-08-16 10:29:45 -0700
committerChristopher Speller <crspeller@gmail.com>2017-08-16 10:29:45 -0700
commit29a7e182a6a9c2970b9c2c2d55062d17f33f084e (patch)
treef7b84c0e437d50011a968e0a940d4c1566406e99 /app
parent0ab490845aed0ce3b58cbffd8ec35be237abda1c (diff)
downloadchat-29a7e182a6a9c2970b9c2c2d55062d17f33f084e.tar.gz
chat-29a7e182a6a9c2970b9c2c2d55062d17f33f084e.tar.bz2
chat-29a7e182a6a9c2970b9c2c2d55062d17f33f084e.zip
PLT-6079 Adding leader election (#7105)
Diffstat (limited to 'app')
-rw-r--r--app/diagnostics.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/diagnostics.go b/app/diagnostics.go
index 2eae5871d..1df5b1feb 100644
--- a/app/diagnostics.go
+++ b/app/diagnostics.go
@@ -49,7 +49,7 @@ const (
var client *analytics.Client
func SendDailyDiagnostics() {
- if *utils.Cfg.LogSettings.EnableDiagnostics {
+ if *utils.Cfg.LogSettings.EnableDiagnostics && utils.IsLeader() {
initDiagnostics("")
trackActivity()
trackConfig()