Skip to content

Add a totalSize() function #44

Description

@KyleMaas

In trying to get ssb-blobs-purge to work in a browser (see arj03/ssb-browser-demo#8), I'm running into an issue in that ssb-blobs-purge requires trammel (see ssbc/ssb-blobs-purge#3), which doesn't work with the ssb-blobs modifications we have in ssb-browser-core. I could make it work if ssb-blobs had a function itself to figure out the total size of all of the blobs it has. That way trammel could be removed from ssb-blobs-purge.

Is it possible we could add a totalSize() function here which returns the total number of bytes consumed by the blobs we're currently storing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions