Skip to content

Commit

Permalink
fix(BlockRepositoryApi): stats on blocks #129
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Jul 27, 2019
1 parent ba4097a commit 6caa0e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CoreApi/BlockApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public BlockApi(IpfsEngine ipfs)
this.ipfs = ipfs;
}

FileStore<Cid, DataBlock> Store
public FileStore<Cid, DataBlock> Store
{
get
{
Expand Down
3 changes: 2 additions & 1 deletion src/CoreApi/BlockRepositoryApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public BlockRepositoryApi(IpfsEngine ipfs)
StorageMax = 10000000000 // TODO: there is no storage max
};

GetDirStats(data.RepoPath, data, cancel);
var blockApi = (BlockApi)ipfs.Block;
GetDirStats(blockApi.Store.Folder, data, cancel);

return Task.FromResult(data);
}
Expand Down

0 comments on commit 6caa0e0

Please sign in to comment.