syncweb_core/node/blob_store.rs
1use iroh_blobs::api::Store as BlobApi;
2use iroh_blobs::BlobsProtocol;
3
4pub struct BlobStore {
5 store: BlobApi,
6}
7
8impl BlobStore {
9 pub fn new(protocol: &BlobsProtocol) -> Self {
10 Self {
11 store: protocol.store().clone(),
12 }
13 }
14
15 pub fn inner(&self) -> &BlobApi {
16 &self.store
17 }
18}