Skip to content

Commit 164de5e

Browse files
committed
Merge branch 'master' of github.com:grafana/grafana
2 parents a2baec8 + 71f4065 commit 164de5e

File tree

3 files changed

+0
-104
lines changed

3 files changed

+0
-104
lines changed

pkg/services/alerting/reader.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,6 @@ func (arr *DefaultRuleReader) Fetch() []*Rule {
6464
}
6565

6666
func (arr *DefaultRuleReader) heartbeat() {
67-
68-
//Lets cheat on this until we focus on clustering
69-
//log.Info("Heartbeat: Sending heartbeat from " + this.serverId)
7067
arr.clusterSize = 1
7168
arr.serverPosition = 1
72-
73-
/*
74-
cmd := &m.HeartBeatCommand{ServerId: this.serverId}
75-
err := bus.Dispatch(cmd)
76-
77-
if err != nil {
78-
log.Error(1, "Failed to send heartbeat.")
79-
} else {
80-
this.clusterSize = cmd.Result.ClusterSize
81-
this.serverPosition = cmd.Result.UptimePosition
82-
}
83-
*/
8469
}

pkg/services/alerting/reader_test.go

Lines changed: 0 additions & 84 deletions
This file was deleted.

pkg/services/alerting/rule_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ func TestAlertRuleModel(t *testing.T) {
8888
Convey("Can read notifications", func() {
8989
So(len(alertRule.Notifications), ShouldEqual, 2)
9090
})
91-
/*
92-
Convey("Can read noDataMode", func() {
93-
So(len(alertRule.NoDataMode), ShouldEqual, m.AlertStateCritical)
94-
})
95-
*/
9691
})
9792
})
9893
}

0 commit comments

Comments
 (0)