summaryrefslogtreecommitdiffhomepage
path: root/pkg/waiter/waiter_state_autogen.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-24 00:53:27 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-24 00:53:27 +0000
commit70cbe923d390e91fc05b06dfa05c6810b0701037 (patch)
treefba2e949690078ba4ffef65d03a2bdfaa9b01b61 /pkg/waiter/waiter_state_autogen.go
parentb1dbae4ae486840d512fc3e0ba8606ae66580234 (diff)
parent9f87400f087df0492cf181c97f431b6d5ce3a987 (diff)
Merge release-20201019.0-51-g9f87400f0 (automated)
Diffstat (limited to 'pkg/waiter/waiter_state_autogen.go')
-rw-r--r--pkg/waiter/waiter_state_autogen.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkg/waiter/waiter_state_autogen.go b/pkg/waiter/waiter_state_autogen.go
index 95ca472de..e1287330a 100644
--- a/pkg/waiter/waiter_state_autogen.go
+++ b/pkg/waiter/waiter_state_autogen.go
@@ -40,21 +40,22 @@ func (q *Queue) StateTypeName() string {
}
func (q *Queue) StateFields() []string {
- return []string{}
+ return []string{
+ "list",
+ }
}
func (q *Queue) beforeSave() {}
func (q *Queue) StateSave(stateSinkObject state.Sink) {
q.beforeSave()
- if !state.IsZeroValue(&q.list) {
- state.Failf("list is %#v, expected zero", &q.list)
- }
+ stateSinkObject.Save(0, &q.list)
}
func (q *Queue) afterLoad() {}
func (q *Queue) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &q.list)
}
func (l *waiterList) StateTypeName() string {