Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Merge requests
!198
remove run loop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
remove run loop
remove-run-loop
into
develop
Overview
0
Commits
1
Pipelines
3
Changes
1
Merged
Ghost User
requested to merge
remove-run-loop
into
develop
3 years ago
Overview
0
Commits
1
Pipelines
3
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
d8034e02
1 commit,
3 years ago
1 file
+
5
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
controller.go
+
5
−
7
Options
@@ -124,13 +124,11 @@ func Run(ctx context.Context) error {
return
initError
}
log
.
WithFields
(
log
.
Fields
{})
.
Info
(
"initialisation finished"
)
for
{
select
{
case
<-
c
.
stopChan
:
return
shutdown
()
case
<-
ctx
.
Done
()
:
return
shutdown
()
}
select
{
case
<-
c
.
stopChan
:
return
shutdown
()
case
<-
ctx
.
Done
()
:
return
shutdown
()
}
}
Loading