runtime: removed trap goroutine and let the context cancelation do the thing

This commit is contained in:
A.Unger
2021-12-06 12:11:48 +01:00
parent 771b870753
commit e3e3d1ee57
15 changed files with 4 additions and 75 deletions
-5
View File
@@ -18,7 +18,6 @@ import (
"github.com/owncloud/ocis/ocis-pkg/log"
pkgmiddleware "github.com/owncloud/ocis/ocis-pkg/middleware"
"github.com/owncloud/ocis/ocis-pkg/service/grpc"
"github.com/owncloud/ocis/ocis-pkg/sync"
"github.com/owncloud/ocis/proxy/pkg/config"
"github.com/owncloud/ocis/proxy/pkg/cs3"
"github.com/owncloud/ocis/proxy/pkg/metrics"
@@ -138,10 +137,6 @@ func Server(cfg *config.Config) *cli.Command {
})
}
if !cfg.Supervised {
sync.Trap(&gr, cancel)
}
return gr.Run()
},
}