Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/bootstrap/bootstrap.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/bootstrap/bootstrap.go b/internal/bootstrap/bootstrap.go
index d7620eed0..3612a3694 100644
--- a/internal/bootstrap/bootstrap.go
+++ b/internal/bootstrap/bootstrap.go
@@ -69,7 +69,10 @@ func New(pidFile string, upgradesEnabled bool) (*Bootstrap, error) {
}
gracefulStopCh := make(chan struct{})
- go func() { <-upg.Exit(); close(gracefulStopCh) }()
+ go func() {
+ <-upg.Exit()
+ close(gracefulStopCh)
+ }()
return &Bootstrap{
upgrader: upg,