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
b3531362
Commit
b3531362
authored
Apr 27, 2018
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: minor fix to plugin service shut down flow
parent
7e2fb5e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
pkg/plugins/plugins.go
+5
-2
No files found.
pkg/plugins/plugins.go
View file @
b3531362
...
...
@@ -111,11 +111,14 @@ func (pm *PluginManager) Run(ctx context.Context) error {
pm
.
checkForUpdates
()
ticker
:=
time
.
NewTicker
(
time
.
Minute
*
10
)
for
{
run
:=
true
for
run
{
select
{
case
<-
ticker
.
C
:
pm
.
checkForUpdates
()
case
<-
ctx
.
Done
()
:
run
=
false
break
}
}
...
...
@@ -125,7 +128,7 @@ func (pm *PluginManager) Run(ctx context.Context) error {
p
.
Kill
()
}
return
nil
return
ctx
.
Err
()
}
func
checkPluginPaths
()
error
{
...
...
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