[#11] Build simple neofs-node application

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-08-21 18:01:59 +03:00 committed by Alex Vanin
parent a87fdab324
commit 265c26150d
5 changed files with 144 additions and 3 deletions

View file

@ -1,10 +1,22 @@
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()