EncodedObject honors the storer.EncodedObjectStorer interface.
(t plumbing.ObjectType, h plumbing.Hash)
| 44 | |
| 45 | // EncodedObject honors the storer.EncodedObjectStorer interface. |
| 46 | func (o *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) { |
| 47 | obj, err := o.EncodedObjectStorer.EncodedObject(t, h) |
| 48 | if err == plumbing.ErrObjectNotFound { |
| 49 | return o.temporal.EncodedObject(t, h) |
| 50 | } |
| 51 | |
| 52 | return obj, err |
| 53 | } |
| 54 | |
| 55 | // IterEncodedObjects honors the storer.EncodedObjectStorer interface. |
| 56 | func (o *ObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error) { |