Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
c0829903
Commit
c0829903
authored
Oct 12, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(alerting): scope variable was updated
closes #6228
parent
b8b577ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pkg/services/alerting/notifier.go
+3
-2
No files found.
pkg/services/alerting/notifier.go
View file @
c0829903
...
...
@@ -68,8 +68,9 @@ func (n *RootNotifier) sendNotifications(context *EvalContext, notifiers []Notif
g
,
_
:=
errgroup
.
WithContext
(
context
.
Ctx
)
for
_
,
notifier
:=
range
notifiers
{
n
.
log
.
Info
(
"Sending notification"
,
"type"
,
notifier
.
GetType
(),
"id"
,
notifier
.
GetNotifierId
(),
"isDefault"
,
notifier
.
GetIsDefault
())
g
.
Go
(
func
()
error
{
return
notifier
.
Notify
(
context
)
})
not
:=
notifier
//avoid updating scope variable in go routine
n
.
log
.
Info
(
"Sending notification"
,
"type"
,
not
.
GetType
(),
"id"
,
not
.
GetNotifierId
(),
"isDefault"
,
not
.
GetIsDefault
())
g
.
Go
(
func
()
error
{
return
not
.
Notify
(
context
)
})
}
return
g
.
Wait
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment