(sctx *sdksrv.Context, block bool)
| 53 | } |
| 54 | |
| 55 | func 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 | } |
no test coverage detected