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
fe9d86c0
Unverified
Commit
fe9d86c0
authored
Sep 19, 2018
by
Carl Bergquist
Committed by
GitHub
Sep 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13330 from mjtrangoni/fix-megacheck-issues
Fix megacheck issues
parents
61b2100b
13a1d0a0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
13 deletions
+6
-13
pkg/plugins/dashboards_updater.go
+1
-5
pkg/services/sqlstore/alert_notification.go
+2
-5
pkg/tsdb/elasticsearch/client/client.go
+3
-3
No files found.
pkg/plugins/dashboards_updater.go
View file @
fe9d86c0
...
...
@@ -48,11 +48,7 @@ func autoUpdateAppDashboard(pluginDashInfo *PluginDashboardInfoDTO, orgId int64)
Path
:
pluginDashInfo
.
Path
,
}
if
err
:=
bus
.
Dispatch
(
&
updateCmd
);
err
!=
nil
{
return
err
}
return
nil
return
bus
.
Dispatch
(
&
updateCmd
)
}
func
syncPluginDashboards
(
pluginDef
*
PluginBase
,
orgId
int64
)
{
...
...
pkg/services/sqlstore/alert_notification.go
View file @
fe9d86c0
...
...
@@ -239,11 +239,8 @@ func RecordNotificationJournal(ctx context.Context, cmd *m.RecordNotificationJou
Success
:
cmd
.
Success
,
}
if
_
,
err
:=
sess
.
Insert
(
journalEntry
);
err
!=
nil
{
return
err
}
return
nil
_
,
err
:=
sess
.
Insert
(
journalEntry
)
return
err
})
}
...
...
pkg/tsdb/elasticsearch/client/client.go
View file @
fe9d86c0
...
...
@@ -144,7 +144,7 @@ func (c *baseClientImpl) encodeBatchRequests(requests []*multiRequest) ([]byte,
payload
.
WriteString
(
body
+
"
\n
"
)
}
elapsed
:=
time
.
Now
()
.
Sub
(
start
)
elapsed
:=
time
.
Since
(
start
)
clientLog
.
Debug
(
"Encoded batch requests to json"
,
"took"
,
elapsed
)
return
payload
.
Bytes
(),
nil
...
...
@@ -187,7 +187,7 @@ func (c *baseClientImpl) executeRequest(method, uriPath string, body []byte) (*h
start
:=
time
.
Now
()
defer
func
()
{
elapsed
:=
time
.
Now
()
.
Sub
(
start
)
elapsed
:=
time
.
Since
(
start
)
clientLog
.
Debug
(
"Executed request"
,
"took"
,
elapsed
)
}()
return
ctxhttp
.
Do
(
c
.
ctx
,
httpClient
,
req
)
...
...
@@ -215,7 +215,7 @@ func (c *baseClientImpl) ExecuteMultisearch(r *MultiSearchRequest) (*MultiSearch
return
nil
,
err
}
elapsed
:=
time
.
Now
()
.
Sub
(
start
)
elapsed
:=
time
.
Since
(
start
)
clientLog
.
Debug
(
"Decoded multisearch json response"
,
"took"
,
elapsed
)
msr
.
Status
=
res
.
StatusCode
...
...
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