HasEncodedObject honors the storer.EncodedObjectStorer interface.
(h plumbing.Hash)
| 24 | |
| 25 | // HasEncodedObject honors the storer.EncodedObjectStorer interface. |
| 26 | func (o *ObjectStorage) HasEncodedObject(h plumbing.Hash) error { |
| 27 | err := o.EncodedObjectStorer.HasEncodedObject(h) |
| 28 | if err == plumbing.ErrObjectNotFound { |
| 29 | return o.temporal.HasEncodedObject(h) |
| 30 | } |
| 31 | |
| 32 | return err |
| 33 | } |
| 34 | |
| 35 | // EncodedObjectSize honors the storer.EncodedObjectStorer interface. |
| 36 | func (o *ObjectStorage) EncodedObjectSize(h plumbing.Hash) (int64, error) { |