forked from TrueCloudLab/frostfs-node
[#11] Build simple neofs-node application
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
a87fdab324
commit
265c26150d
5 changed files with 144 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue