diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-01 01:07:14 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-01 01:07:14 +0000 |
commit | 5c672eed6432fd4bcf02e83670f9d4e5d9994456 (patch) | |
tree | c4f5bd7bc7a82ba740acba4c3dab050e2baa5fef /pkg/state/encode.go | |
parent | b8e50d110eb58d1b85b93968358d689dd9250d2d (diff) | |
parent | a99d3479a84ca86843e500dbdf58db0af389b536 (diff) |
Merge release-20190806.1-358-ga99d347 (automated)
Diffstat (limited to 'pkg/state/encode.go')
-rw-r--r-- | pkg/state/encode.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/state/encode.go b/pkg/state/encode.go index 5d9409a45..c5118d3a9 100644 --- a/pkg/state/encode.go +++ b/pkg/state/encode.go @@ -16,6 +16,7 @@ package state import ( "container/list" + "context" "encoding/binary" "fmt" "io" @@ -38,6 +39,9 @@ type queuedObject struct { // The encoding process is a breadth-first traversal of the object graph. The // inherent races and dependencies are much simpler than the decode case. type encodeState struct { + // ctx is the encode context. + ctx context.Context + // lastID is the last object ID. // // See idsByObject for context. Because of the special zero encoding |