mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-01 03:03:10 -06:00
Init at some place, minimize changes
This commit is contained in:
parent
1c3606e4aa
commit
183daf8326
|
|
@ -49,6 +49,13 @@ type OutgoingQueues struct {
|
||||||
queues map[gomatrixserverlib.ServerName]*destinationQueue
|
queues map[gomatrixserverlib.ServerName]*destinationQueue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
prometheus.MustRegister(
|
||||||
|
destinationQueueTotal, destinationQueueRunning,
|
||||||
|
destinationQueueBackingOff,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
var destinationQueueTotal = prometheus.NewGauge(
|
var destinationQueueTotal = prometheus.NewGauge(
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
Namespace: "dendrite",
|
Namespace: "dendrite",
|
||||||
|
|
@ -73,13 +80,6 @@ var destinationQueueBackingOff = prometheus.NewGauge(
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
|
||||||
prometheus.MustRegister(
|
|
||||||
destinationQueueTotal, destinationQueueRunning,
|
|
||||||
destinationQueueBackingOff,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// NewOutgoingQueues makes a new OutgoingQueues
|
// NewOutgoingQueues makes a new OutgoingQueues
|
||||||
func NewOutgoingQueues(
|
func NewOutgoingQueues(
|
||||||
db storage.Database,
|
db storage.Database,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue