MCPcopy Create free account
hub / github.com/akash-network/node / getCtx

Function getCtx

cmd/akash/cmd/testnetify/utils.go:55–62  ·  view source on GitHub ↗
(sctx *sdksrv.Context, block bool)

Source from the content-addressed store, hash-verified

53}
54
55func getCtx(sctx *sdksrv.Context, block bool) (*errgroup.Group, context.Context) {
56 ctx, cancelFn := context.WithCancel(context.Background())
57 g, ctx := errgroup.WithContext(ctx)
58 // listen for quit signals so the calling parent process can gracefully exit
59 server.ListenForQuitSignals(ctx, cancelFn, g, block, sctx.Logger)
60
61 return g, ctx
62}

Callers 1

testnetifyFunction · 0.85

Calls 1

ListenForQuitSignalsFunction · 0.92

Tested by

no test coverage detected