BlobReader provides unified interface for the miner to read blobs and samples from StorageManager and downloader cache.
| 21 | // BlobReader provides unified interface for the miner to read blobs and samples |
| 22 | // from StorageManager and downloader cache. |
| 23 | type BlobReader struct { |
| 24 | cr BlobCacheReader |
| 25 | sm *es.StorageManager |
| 26 | lg log.Logger |
| 27 | } |
| 28 | |
| 29 | func NewBlobReader(cr BlobCacheReader, sm *es.StorageManager, lg log.Logger) *BlobReader { |
| 30 | return &BlobReader{ |
nothing calls this directly
no outgoing calls
no test coverage detected