mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix function names in comments
This commit is contained in:
parent
e4d0ae9b4e
commit
1b3ea0ea1b
|
@ -69,7 +69,7 @@ type HandlerOptions struct {
|
||||||
ExternalLabels model.LabelSet
|
ExternalLabels model.LabelSet
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewHandler constructs a new Handler.
|
// New constructs a new Handler.
|
||||||
func New(o *HandlerOptions) *Handler {
|
func New(o *HandlerOptions) *Handler {
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ func (n *Handler) Run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SubmitReqs queues the given notification requests for processing.
|
// Send queues the given notification requests for processing.
|
||||||
// Panics if called on a handler that is not running.
|
// Panics if called on a handler that is not running.
|
||||||
func (n *Handler) Send(alerts ...*model.Alert) {
|
func (n *Handler) Send(alerts ...*model.Alert) {
|
||||||
n.mtx.Lock()
|
n.mtx.Lock()
|
||||||
|
|
Loading…
Reference in a new issue