Commit d308efc7 authored by Brian Tiger Chow's avatar Brian Tiger Chow

todo(blockservice, core) add notes

* to wrap datastore for ease of use
* to pass a non-responsive bitswap mock rather than performing nil
* checks internally
parent e35b46eb
......@@ -35,6 +35,8 @@ func (s *BlockService) AddBlock(b *blocks.Block) (u.Key, error) {
k := b.Key()
dsk := ds.NewKey(string(k))
u.DOut("storing [%s] in datastore\n", k.Pretty())
// TODO(brian): define a block datastore with a Put method which accepts a
// block parameter
err := s.Datastore.Put(dsk, b.Data)
if err != nil {
return k, err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment