kubo/blockservice
Juan Batiz-Benet 04eba28a16 blockservice: dont write blocks twice
If the datastore has a value for the key, we already have
the block. We should not write it again. This will make redundant
writes much faster.

At the moment, a datastore.Has on leveldb is a GetBackedHas.
Track https://github.com/jbenet/go-datastore/issues/6
2014-10-30 01:54:53 -07:00
..
blocks_test.go add context to blockservice Get 2014-10-25 12:38:32 -07:00
blockservice.go blockservice: dont write blocks twice 2014-10-30 01:54:53 -07:00