forked from TrueCloudLab/frostfs-http-gw
drop 'global' package
It makes no sense as a package. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
6c73296012
commit
8ba5a2c92a
2 changed files with 5 additions and 24 deletions
7
main.go
7
main.go
|
@ -1,7 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-http-gw/global"
|
||||
"context"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/nspcc-dev/neofs-http-gw/logger"
|
||||
"github.com/spf13/viper"
|
||||
"go.uber.org/zap"
|
||||
|
@ -12,7 +15,7 @@ func main() {
|
|||
v = settings()
|
||||
l = newLogger(v)
|
||||
)
|
||||
globalContext := global.Context()
|
||||
globalContext, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM, syscall.SIGHUP)
|
||||
app := newApp(globalContext, WithLogger(l), WithConfig(v))
|
||||
go app.Serve(globalContext)
|
||||
app.Wait()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue