File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -157,12 +157,14 @@ func (n *Node) DownloadBundles(
157
157
// TODO (cody-littley) this is flaky, and will fail if any relay fails. We should retry failures
158
158
return nil , nil , fmt .Errorf ("failed to get chunks from relays: %v" , resp .err )
159
159
}
160
+
160
161
if len (resp .bundles ) != len (resp .metadata ) {
161
162
return nil , nil , fmt .Errorf ("number of bundles and metadata do not match (%d != %d)" ,
162
163
len (resp .bundles ), len (resp .metadata ))
163
164
}
164
- for i , bundle := range resp .bundles {
165
- metadata := resp .metadata [i ]
165
+
166
+ for j , bundle := range resp .bundles {
167
+ metadata := resp .metadata [j ]
166
168
blobShards [metadata .blobShardIndex ].Bundles [metadata .quorum ], err = new (core.Bundle ).Deserialize (bundle )
167
169
if err != nil {
168
170
return nil , nil , fmt .Errorf ("failed to deserialize bundle: %v" , err )
You can’t perform that action at this time.
0 commit comments