frostfs-node/cmd/neofs-node/main.go
Leonard Lyubich 65eb1181e9 [#11] Use gRPC handlers in neofs-node application
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-10-02 11:23:17 +03:00

25 lines
274 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()
c.ctx = grace.NewGracefulContext(nil)
serveGRPC(c)
<-c.ctx.Done()
c.wg.Wait()
}