@agoric/cosmos 0.34.2-dev-5513dea.0 → 0.34.2-dev-3679b4c.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/app.go +16 -11
- package/git-revision.txt +1 -1
- package/package.json +2 -2
- package/proto/agoric/swingset/swingset.proto +5 -2
- package/x/swingset/alias.go +7 -6
- package/x/swingset/keeper/extension_snapshotter.go +321 -0
- package/x/swingset/keeper/extension_snapshotter_test.go +106 -0
- package/x/swingset/keeper/swing_store_exports_handler.go +818 -0
- package/x/swingset/keeper/swing_store_exports_handler_test.go +247 -0
- package/x/swingset/types/swingset.pb.go +82 -80
- package/x/swingset/keeper/snapshotter.go +0 -528
- package/x/swingset/keeper/snapshotter_test.go +0 -195
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
package keeper
|
|
2
|
+
|
|
3
|
+
import (
|
|
4
|
+
"errors"
|
|
5
|
+
"io"
|
|
6
|
+
"testing"
|
|
7
|
+
|
|
8
|
+
"github.com/Agoric/agoric-sdk/golang/cosmos/vm"
|
|
9
|
+
"github.com/tendermint/tendermint/libs/log"
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
func newTestSwingStoreExportsHandler() *SwingStoreExportsHandler {
|
|
13
|
+
logger := log.NewNopLogger() // log.NewTMLogger(log.NewSyncWriter( /* os.Stdout*/ io.Discard)).With("module", "sdk/app")
|
|
14
|
+
return &SwingStoreExportsHandler{
|
|
15
|
+
logger: logger,
|
|
16
|
+
blockingSend: func(action vm.Jsonable, mustNotBeInited bool) (string, error) { return "", nil },
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
var _ SwingStoreExportEventHandler = testSwingStoreEventHandler{}
|
|
21
|
+
|
|
22
|
+
type testSwingStoreEventHandler struct {
|
|
23
|
+
onExportStarted func(height uint64, retrieveExport func() error) error
|
|
24
|
+
onExportRetrieved func(provider SwingStoreExportProvider) error
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
func newTestSwingStoreEventHandler() testSwingStoreEventHandler {
|
|
28
|
+
return testSwingStoreEventHandler{
|
|
29
|
+
onExportStarted: func(height uint64, retrieveExport func() error) error {
|
|
30
|
+
return retrieveExport()
|
|
31
|
+
},
|
|
32
|
+
onExportRetrieved: func(provider SwingStoreExportProvider) error {
|
|
33
|
+
for {
|
|
34
|
+
_, err := provider.ReadArtifact()
|
|
35
|
+
if err == io.EOF {
|
|
36
|
+
return nil
|
|
37
|
+
} else if err != nil {
|
|
38
|
+
return err
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
func (taker testSwingStoreEventHandler) OnExportStarted(height uint64, retrieveExport func() error) error {
|
|
46
|
+
return taker.onExportStarted(height, retrieveExport)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
func (taker testSwingStoreEventHandler) OnExportRetrieved(provider SwingStoreExportProvider) error {
|
|
50
|
+
return taker.onExportRetrieved(provider)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
func TestSwingStoreSnapshotterInProgress(t *testing.T) {
|
|
54
|
+
exportsHandler := newTestSwingStoreExportsHandler()
|
|
55
|
+
ch := make(chan struct{})
|
|
56
|
+
exportEventHandler := newTestSwingStoreEventHandler()
|
|
57
|
+
exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
|
|
58
|
+
<-ch
|
|
59
|
+
return nil
|
|
60
|
+
}
|
|
61
|
+
err := exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
|
|
62
|
+
if err != nil {
|
|
63
|
+
t.Fatal(err)
|
|
64
|
+
}
|
|
65
|
+
err = WaitUntilSwingStoreExportStarted()
|
|
66
|
+
if err != nil {
|
|
67
|
+
t.Fatal(err)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
err = exportsHandler.InitiateExport(456, newTestSwingStoreEventHandler(), SwingStoreExportOptions{})
|
|
71
|
+
if err == nil {
|
|
72
|
+
t.Error("wanted error for export operation in progress")
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
err = exportsHandler.RestoreExport(SwingStoreExportProvider{BlockHeight: 456}, SwingStoreRestoreOptions{})
|
|
76
|
+
if err == nil {
|
|
77
|
+
t.Error("wanted error for export operation in progress")
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
close(ch)
|
|
81
|
+
err = WaitUntilSwingStoreExportDone()
|
|
82
|
+
if err != nil {
|
|
83
|
+
t.Fatal(err)
|
|
84
|
+
}
|
|
85
|
+
err = exportsHandler.InitiateExport(456, exportEventHandler, SwingStoreExportOptions{})
|
|
86
|
+
if err != nil {
|
|
87
|
+
t.Fatal(err)
|
|
88
|
+
}
|
|
89
|
+
err = WaitUntilSwingStoreExportDone()
|
|
90
|
+
if err != nil {
|
|
91
|
+
t.Fatal(err)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
func TestSwingStoreSnapshotterSecondCommit(t *testing.T) {
|
|
96
|
+
exportsHandler := newTestSwingStoreExportsHandler()
|
|
97
|
+
|
|
98
|
+
exportEventHandler := newTestSwingStoreEventHandler()
|
|
99
|
+
// Use a channel to block the snapshot goroutine after it has started but before it exits.
|
|
100
|
+
ch := make(chan struct{})
|
|
101
|
+
exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
|
|
102
|
+
<-ch
|
|
103
|
+
return nil
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// First run through app.Commit()
|
|
107
|
+
err := WaitUntilSwingStoreExportStarted()
|
|
108
|
+
if err != nil {
|
|
109
|
+
t.Fatal(err)
|
|
110
|
+
}
|
|
111
|
+
err = exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
|
|
112
|
+
if err != nil {
|
|
113
|
+
t.Fatal(err)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Second run through app.Commit() - should return right away
|
|
117
|
+
err = WaitUntilSwingStoreExportStarted()
|
|
118
|
+
if err != nil {
|
|
119
|
+
t.Fatal(err)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// close the signaling channel to let goroutine exit
|
|
123
|
+
close(ch)
|
|
124
|
+
err = WaitUntilSwingStoreExportDone()
|
|
125
|
+
if err != nil {
|
|
126
|
+
t.Fatal(err)
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
func TestSwingStoreSnapshotterInitiateFails(t *testing.T) {
|
|
131
|
+
exportsHandler := newTestSwingStoreExportsHandler()
|
|
132
|
+
exportEventHandler := newTestSwingStoreEventHandler()
|
|
133
|
+
exportsHandler.blockingSend = func(action vm.Jsonable, mustNotBeInited bool) (string, error) {
|
|
134
|
+
initiateAction, ok := action.(*swingStoreInitiateExportAction)
|
|
135
|
+
if ok && initiateAction.Request == "initiate" {
|
|
136
|
+
return "", errors.New("initiate failed")
|
|
137
|
+
}
|
|
138
|
+
return "", nil
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
err := exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
|
|
142
|
+
if err != nil {
|
|
143
|
+
t.Fatal(err)
|
|
144
|
+
}
|
|
145
|
+
err = WaitUntilSwingStoreExportStarted()
|
|
146
|
+
if err == nil {
|
|
147
|
+
t.Fatal("wanted initiation error")
|
|
148
|
+
}
|
|
149
|
+
if err.Error() != "initiate failed" {
|
|
150
|
+
t.Errorf(`wanted error "initiate failed", got "%s"`, err.Error())
|
|
151
|
+
}
|
|
152
|
+
// another wait should succeed without error
|
|
153
|
+
err = WaitUntilSwingStoreExportStarted()
|
|
154
|
+
if err != nil {
|
|
155
|
+
t.Error(err)
|
|
156
|
+
}
|
|
157
|
+
err = WaitUntilSwingStoreExportDone()
|
|
158
|
+
if err != nil {
|
|
159
|
+
t.Fatal(err)
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
func TestSwingStoreSnapshotterRetrievalFails(t *testing.T) {
|
|
164
|
+
exportsHandler := newTestSwingStoreExportsHandler()
|
|
165
|
+
var retrieveError error
|
|
166
|
+
exportsHandler.blockingSend = func(action vm.Jsonable, mustNotBeInited bool) (string, error) {
|
|
167
|
+
retrieveAction, ok := action.(*swingStoreRetrieveExportAction)
|
|
168
|
+
if ok && retrieveAction.Request == "retrieve" {
|
|
169
|
+
retrieveError = errors.New("retrieve failed")
|
|
170
|
+
return "", retrieveError
|
|
171
|
+
}
|
|
172
|
+
return "", nil
|
|
173
|
+
}
|
|
174
|
+
exportEventHandler := newTestSwingStoreEventHandler()
|
|
175
|
+
var savedErr error
|
|
176
|
+
ch := make(chan struct{})
|
|
177
|
+
exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
|
|
178
|
+
savedErr = retrieveExport()
|
|
179
|
+
<-ch
|
|
180
|
+
return savedErr
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
err := exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
|
|
184
|
+
if err != nil {
|
|
185
|
+
t.Fatal(err)
|
|
186
|
+
}
|
|
187
|
+
err = WaitUntilSwingStoreExportStarted()
|
|
188
|
+
if err != nil {
|
|
189
|
+
t.Fatal(err)
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
close(ch)
|
|
193
|
+
if savedErr != retrieveError {
|
|
194
|
+
t.Errorf(`wanted retrieval error, got "%v"`, savedErr)
|
|
195
|
+
}
|
|
196
|
+
err = WaitUntilSwingStoreExportDone()
|
|
197
|
+
if err != retrieveError {
|
|
198
|
+
t.Errorf(`wanted retrieval error, got "%v"`, err)
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
func TestSwingStoreSnapshotterDiscard(t *testing.T) {
|
|
203
|
+
discardCalled := false
|
|
204
|
+
exportsHandler := newTestSwingStoreExportsHandler()
|
|
205
|
+
exportsHandler.blockingSend = func(action vm.Jsonable, mustNotBeInited bool) (string, error) {
|
|
206
|
+
discardAction, ok := action.(*swingStoreDiscardExportAction)
|
|
207
|
+
if ok && discardAction.Request == "discard" {
|
|
208
|
+
discardCalled = true
|
|
209
|
+
}
|
|
210
|
+
return "", nil
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// simulate an onExportStarted which successfully calls retrieveExport()
|
|
214
|
+
exportEventHandler := newTestSwingStoreEventHandler()
|
|
215
|
+
exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
|
|
216
|
+
activeOperation.exportRetrieved = true
|
|
217
|
+
return nil
|
|
218
|
+
}
|
|
219
|
+
err := exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
|
|
220
|
+
if err != nil {
|
|
221
|
+
t.Fatal(err)
|
|
222
|
+
}
|
|
223
|
+
err = WaitUntilSwingStoreExportDone()
|
|
224
|
+
if err != nil {
|
|
225
|
+
t.Fatal(err)
|
|
226
|
+
}
|
|
227
|
+
if discardCalled {
|
|
228
|
+
t.Error("didn't want discard called")
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// simulate an onExportStarted which doesn't call retrieveExport()
|
|
232
|
+
exportEventHandler = newTestSwingStoreEventHandler()
|
|
233
|
+
exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
|
|
234
|
+
return nil
|
|
235
|
+
}
|
|
236
|
+
err = exportsHandler.InitiateExport(456, exportEventHandler, SwingStoreExportOptions{})
|
|
237
|
+
if err != nil {
|
|
238
|
+
t.Fatal(err)
|
|
239
|
+
}
|
|
240
|
+
err = WaitUntilSwingStoreExportDone()
|
|
241
|
+
if err != nil {
|
|
242
|
+
t.Fatal(err)
|
|
243
|
+
}
|
|
244
|
+
if !discardCalled {
|
|
245
|
+
t.Error("wanted discard called")
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -495,24 +495,27 @@ func (m *Egress) GetPowerFlags() []string {
|
|
|
495
495
|
return nil
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
//
|
|
499
|
-
|
|
498
|
+
// SwingStoreArtifact encodes an artifact of a swing-store export.
|
|
499
|
+
// Artifacts may be stored or transmitted in any order. Most handlers do
|
|
500
|
+
// maintain the artifact order from their original source as an effect of how
|
|
501
|
+
// they handle the artifacts.
|
|
502
|
+
type SwingStoreArtifact struct {
|
|
500
503
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"`
|
|
501
504
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data" yaml:"data"`
|
|
502
505
|
}
|
|
503
506
|
|
|
504
|
-
func (m *
|
|
505
|
-
func (m *
|
|
506
|
-
func (*
|
|
507
|
-
func (*
|
|
507
|
+
func (m *SwingStoreArtifact) Reset() { *m = SwingStoreArtifact{} }
|
|
508
|
+
func (m *SwingStoreArtifact) String() string { return proto.CompactTextString(m) }
|
|
509
|
+
func (*SwingStoreArtifact) ProtoMessage() {}
|
|
510
|
+
func (*SwingStoreArtifact) Descriptor() ([]byte, []int) {
|
|
508
511
|
return fileDescriptor_ff9c341e0de15f8b, []int{8}
|
|
509
512
|
}
|
|
510
|
-
func (m *
|
|
513
|
+
func (m *SwingStoreArtifact) XXX_Unmarshal(b []byte) error {
|
|
511
514
|
return m.Unmarshal(b)
|
|
512
515
|
}
|
|
513
|
-
func (m *
|
|
516
|
+
func (m *SwingStoreArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
514
517
|
if deterministic {
|
|
515
|
-
return
|
|
518
|
+
return xxx_messageInfo_SwingStoreArtifact.Marshal(b, m, deterministic)
|
|
516
519
|
} else {
|
|
517
520
|
b = b[:cap(b)]
|
|
518
521
|
n, err := m.MarshalToSizedBuffer(b)
|
|
@@ -522,26 +525,26 @@ func (m *ExtensionSnapshotterArtifactPayload) XXX_Marshal(b []byte, deterministi
|
|
|
522
525
|
return b[:n], nil
|
|
523
526
|
}
|
|
524
527
|
}
|
|
525
|
-
func (m *
|
|
526
|
-
|
|
528
|
+
func (m *SwingStoreArtifact) XXX_Merge(src proto.Message) {
|
|
529
|
+
xxx_messageInfo_SwingStoreArtifact.Merge(m, src)
|
|
527
530
|
}
|
|
528
|
-
func (m *
|
|
531
|
+
func (m *SwingStoreArtifact) XXX_Size() int {
|
|
529
532
|
return m.Size()
|
|
530
533
|
}
|
|
531
|
-
func (m *
|
|
532
|
-
|
|
534
|
+
func (m *SwingStoreArtifact) XXX_DiscardUnknown() {
|
|
535
|
+
xxx_messageInfo_SwingStoreArtifact.DiscardUnknown(m)
|
|
533
536
|
}
|
|
534
537
|
|
|
535
|
-
var
|
|
538
|
+
var xxx_messageInfo_SwingStoreArtifact proto.InternalMessageInfo
|
|
536
539
|
|
|
537
|
-
func (m *
|
|
540
|
+
func (m *SwingStoreArtifact) GetName() string {
|
|
538
541
|
if m != nil {
|
|
539
542
|
return m.Name
|
|
540
543
|
}
|
|
541
544
|
return ""
|
|
542
545
|
}
|
|
543
546
|
|
|
544
|
-
func (m *
|
|
547
|
+
func (m *SwingStoreArtifact) GetData() []byte {
|
|
545
548
|
if m != nil {
|
|
546
549
|
return m.Data
|
|
547
550
|
}
|
|
@@ -557,67 +560,66 @@ func init() {
|
|
|
557
560
|
proto.RegisterType((*PowerFlagFee)(nil), "agoric.swingset.PowerFlagFee")
|
|
558
561
|
proto.RegisterType((*QueueSize)(nil), "agoric.swingset.QueueSize")
|
|
559
562
|
proto.RegisterType((*Egress)(nil), "agoric.swingset.Egress")
|
|
560
|
-
proto.RegisterType((*
|
|
563
|
+
proto.RegisterType((*SwingStoreArtifact)(nil), "agoric.swingset.SwingStoreArtifact")
|
|
561
564
|
}
|
|
562
565
|
|
|
563
566
|
func init() { proto.RegisterFile("agoric/swingset/swingset.proto", fileDescriptor_ff9c341e0de15f8b) }
|
|
564
567
|
|
|
565
568
|
var fileDescriptor_ff9c341e0de15f8b = []byte{
|
|
566
|
-
//
|
|
567
|
-
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55,
|
|
568
|
-
0x14,
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
0xef,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
0xf9,
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
0xff, 0xff, 0xd2, 0xc0, 0xc3, 0x71, 0x69, 0x06, 0x00, 0x00,
|
|
569
|
+
// 842 bytes of a gzipped FileDescriptorProto
|
|
570
|
+
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x6f, 0xe3, 0x44,
|
|
571
|
+
0x14, 0x8e, 0x49, 0x52, 0x9a, 0x97, 0x6c, 0xbb, 0x0c, 0x95, 0x36, 0x54, 0x6c, 0xa6, 0xf2, 0x85,
|
|
572
|
+
0x4a, 0xab, 0x8d, 0xb7, 0x20, 0x84, 0x94, 0x15, 0x87, 0xb8, 0xea, 0x6a, 0x25, 0x04, 0x0a, 0x8e,
|
|
573
|
+
0xca, 0x01, 0x81, 0xac, 0x89, 0x33, 0x31, 0xd3, 0x3a, 0x1e, 0xef, 0xcc, 0xf4, 0xd7, 0xfe, 0x03,
|
|
574
|
+
0x70, 0x41, 0x42, 0x9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9, 0x0a, 0xd0, 0x58, 0xdf, 0xb2, 0xb1, 0xe2, 0x82, 0x0e,
|
|
616
|
+
0x85, 0x62, 0x33, 0x12, 0x29, 0xf4, 0x08, 0x1a, 0x15, 0x19, 0x1e, 0x68, 0x36, 0x85, 0x04, 0x05,
|
|
617
|
+
0x1b, 0x4b, 0xdf, 0x38, 0x75, 0xf2, 0x94, 0x28, 0x52, 0x50, 0x37, 0xc9, 0xda, 0x5e, 0x25, 0x6b,
|
|
618
|
+
0xcb, 0x0d, 0x8c, 0xd3, 0x76, 0xf5, 0x0f, 0x5f, 0x5d, 0xf5, 0x9c, 0xd7, 0x57, 0x3d, 0xe7, 0xf7,
|
|
619
|
+
0xab, 0x9e, 0xf3, 0xc3, 0x75, 0xaf, 0xf6, 0xfa, 0xba, 0x57, 0xfb, 0xe5, 0xba, 0x57, 0xfb, 0xf2,
|
|
620
|
+
0x69, 0x45, 0x9e, 0xa1, 0xfd, 0x73, 0xb0, 0x1f, 0x83, 0x91, 0x27, 0xe6, 0x09, 0x49, 0xe3, 0xa5,
|
|
621
|
+
0x6e, 0xe7, 0xab, 0xff, 0x0d, 0xa3, 0xdb, 0x64, 0xcd, 0x3c, 0xf7, 0x1f, 0xfc, 0x1d, 0x00, 0x00,
|
|
622
|
+
0xff, 0xff, 0xee, 0x34, 0x5f, 0xf6, 0x57, 0x06, 0x00, 0x00,
|
|
621
623
|
}
|
|
622
624
|
|
|
623
625
|
func (this *Params) Equal(that interface{}) bool {
|
|
@@ -1138,7 +1140,7 @@ func (m *Egress) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
1138
1140
|
return len(dAtA) - i, nil
|
|
1139
1141
|
}
|
|
1140
1142
|
|
|
1141
|
-
func (m *
|
|
1143
|
+
func (m *SwingStoreArtifact) Marshal() (dAtA []byte, err error) {
|
|
1142
1144
|
size := m.Size()
|
|
1143
1145
|
dAtA = make([]byte, size)
|
|
1144
1146
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
@@ -1148,12 +1150,12 @@ func (m *ExtensionSnapshotterArtifactPayload) Marshal() (dAtA []byte, err error)
|
|
|
1148
1150
|
return dAtA[:n], nil
|
|
1149
1151
|
}
|
|
1150
1152
|
|
|
1151
|
-
func (m *
|
|
1153
|
+
func (m *SwingStoreArtifact) MarshalTo(dAtA []byte) (int, error) {
|
|
1152
1154
|
size := m.Size()
|
|
1153
1155
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
1154
1156
|
}
|
|
1155
1157
|
|
|
1156
|
-
func (m *
|
|
1158
|
+
func (m *SwingStoreArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
1157
1159
|
i := len(dAtA)
|
|
1158
1160
|
_ = i
|
|
1159
1161
|
var l int
|
|
@@ -1351,7 +1353,7 @@ func (m *Egress) Size() (n int) {
|
|
|
1351
1353
|
return n
|
|
1352
1354
|
}
|
|
1353
1355
|
|
|
1354
|
-
func (m *
|
|
1356
|
+
func (m *SwingStoreArtifact) Size() (n int) {
|
|
1355
1357
|
if m == nil {
|
|
1356
1358
|
return 0
|
|
1357
1359
|
}
|
|
@@ -2419,7 +2421,7 @@ func (m *Egress) Unmarshal(dAtA []byte) error {
|
|
|
2419
2421
|
}
|
|
2420
2422
|
return nil
|
|
2421
2423
|
}
|
|
2422
|
-
func (m *
|
|
2424
|
+
func (m *SwingStoreArtifact) Unmarshal(dAtA []byte) error {
|
|
2423
2425
|
l := len(dAtA)
|
|
2424
2426
|
iNdEx := 0
|
|
2425
2427
|
for iNdEx < l {
|
|
@@ -2442,10 +2444,10 @@ func (m *ExtensionSnapshotterArtifactPayload) Unmarshal(dAtA []byte) error {
|
|
|
2442
2444
|
fieldNum := int32(wire >> 3)
|
|
2443
2445
|
wireType := int(wire & 0x7)
|
|
2444
2446
|
if wireType == 4 {
|
|
2445
|
-
return fmt.Errorf("proto:
|
|
2447
|
+
return fmt.Errorf("proto: SwingStoreArtifact: wiretype end group for non-group")
|
|
2446
2448
|
}
|
|
2447
2449
|
if fieldNum <= 0 {
|
|
2448
|
-
return fmt.Errorf("proto:
|
|
2450
|
+
return fmt.Errorf("proto: SwingStoreArtifact: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
2449
2451
|
}
|
|
2450
2452
|
switch fieldNum {
|
|
2451
2453
|
case 1:
|