(m map[plumbing.Hash]plumbing.EncodedObject)
| 159 | } |
| 160 | |
| 161 | func flattenObjectMap(m map[plumbing.Hash]plumbing.EncodedObject) []plumbing.EncodedObject { |
| 162 | objects := make([]plumbing.EncodedObject, 0, len(m)) |
| 163 | for _, obj := range m { |
| 164 | objects = append(objects, obj) |
| 165 | } |
| 166 | return objects |
| 167 | } |
| 168 | |
| 169 | func (o *ObjectStorage) Begin() storer.Transaction { |
| 170 | return &TxObjectStorage{ |