Merge pull request #1751 from liubin/fix/1750-fix-comments

runtime: fix some comments
This commit is contained in:
Chelsea Mafrica 2021-05-06 08:42:15 -07:00 committed by GitHub
commit 917665ab6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)