runtime: fix some comments

This commint include two types of fixes for comments
in src/runtime/containerd-shim-v2/start.go.

- Update comment for calling of watchOOMEvents.
- Comments without heading spaces.

Fixes: #1750

Signed-off-by: bin <bin@hyper.sh>
This commit is contained in:
bin 2021-04-26 14:22:01 +08:00
parent db4fbac1d3
commit f6d5fbf9ba

View File

@ -37,8 +37,8 @@ func startContainer(ctx context.Context, s *service, c *container) error {
} }
go watchSandbox(ctx, s) go watchSandbox(ctx, s)
// We don't rely on the context passed to startContainer as it can be cancelled after // We use s.ctx(`ctx` derived from `s.ctx`) to check for cancellation of the
// this rpc call. // shim context and the context passed to startContainer for tracing.
go watchOOMEvents(ctx, s) go watchOOMEvents(ctx, s)
} else { } else {
_, err := s.sandbox.StartContainer(ctx, c.id) _, err := s.sandbox.StartContainer(ctx, c.id)