From e4c5043ef310ab4b1e75f7de034ccbf66dafe68a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 4 Mar 2021 15:37:33 +0000 Subject: [PATCH] make linter happy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- ocis/pkg/runtime/runtime.go | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/ocis/pkg/runtime/runtime.go b/ocis/pkg/runtime/runtime.go index 442d487a2..06c874a6e 100644 --- a/ocis/pkg/runtime/runtime.go +++ b/ocis/pkg/runtime/runtime.go @@ -57,13 +57,6 @@ var ( "web", // done "webdav", // done } - - dependants = []string{ - "storage-sharing", - "accounts", // done - } - // Maximum number of retries until getting a connection to the rpc runtime service. - maxRetries = 10 ) // Runtime represents an oCIS runtime environment. @@ -141,12 +134,11 @@ func (r *Runtime) Start() error { // TODO(refs) debug line with supervised services. go supervisor.ServeBackground() - select { - case <-halt: - globalCancel() - close(halt) - return nil - } + <-halt + + globalCancel() + close(halt) + return nil } // addServiceToken adds a service token to a global slice of service tokens that contains services managed by the supervisor.