• Steven Allen's avatar
    add a GetSize method · 1cd3a342
    Steven Allen authored
    We can also add this as an extension but it's simple enough I'd like to add it
    directly to the Datastore.
    
    Use-case: The blockstore now has a GetSize and bitswap uses it for packing
    multiple blocks into a single message. Unfortunately, this means that bitswap is
    now calling blockstore.GetSize which calls datastore.Get which tends to be more
    expensive than datastore.Has.
    1cd3a342
autobatch.go 2.34 KB