frostfs-node/cmd/neofs-node/main.go
Leonard Lyubich 265c26150d [#11] Build simple neofs-node application
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-10-02 11:23:02 +03:00

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()
}