265c26150d
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
23 lines
269 B
Go
23 lines
269 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/util/grace"
|
|
)
|
|
|
|
func fatalOnErr(err error) {
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|
|
|
|
func main() {
|
|
c := defaultCfg()
|
|
|
|
fatalOnErr(serveGRPC(c))
|
|
|
|
ctx := grace.NewGracefulContext(nil)
|
|
|
|
<-ctx.Done()
|
|
}
|