ExpandChunks iterates over all chunks in the iterator, buffering all in slice.
(iter chunks.Iterator)
| 499 | |
| 500 | // ExpandChunks iterates over all chunks in the iterator, buffering all in slice. |
| 501 | func ExpandChunks(iter chunks.Iterator) ([]chunks.Meta, error) { |
| 502 | var result []chunks.Meta |
| 503 | for iter.Next() { |
| 504 | result = append(result, iter.At()) |
| 505 | } |
| 506 | return result, iter.Err() |
| 507 | } |
searching dependent graphs…