forked from TrueCloudLab/frostfs-rest-gw
[#76] Update SDK to support interrupt pool dial
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
3a1a17b8aa
commit
91d6ec0918
4 changed files with 51 additions and 29 deletions
|
@ -2,6 +2,8 @@ package main
|
|||
|
||||
import (
|
||||
"context"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/go-openapi/loads"
|
||||
"github.com/nspcc-dev/neofs-rest-gw/gen/restapi"
|
||||
|
@ -10,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
ctx := context.Background()
|
||||
ctx, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
||||
|
||||
v := config()
|
||||
logger := newLogger(v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue