From af09638ac6dc6b6d35f88d9371a0585a9ddcbe10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=85=89=E5=8D=8E?= Date: Tue, 19 Nov 2019 11:24:48 +0800 Subject: [PATCH] Delete redundant import --- chain/store/store.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chain/store/store.go b/chain/store/store.go index 018b5bbc8..922abe5c9 100644 --- a/chain/store/store.go +++ b/chain/store/store.go @@ -22,7 +22,6 @@ import ( "github.com/ipfs/go-cid" dstore "github.com/ipfs/go-datastore" hamt "github.com/ipfs/go-hamt-ipld" - blockstore "github.com/ipfs/go-ipfs-blockstore" bstore "github.com/ipfs/go-ipfs-blockstore" logging "github.com/ipfs/go-log" "github.com/pkg/errors" @@ -440,7 +439,7 @@ type storable interface { ToStorageBlock() (block.Block, error) } -func PutMessage(bs blockstore.Blockstore, m storable) (cid.Cid, error) { +func PutMessage(bs bstore.Blockstore, m storable) (cid.Cid, error) { b, err := m.ToStorageBlock() if err != nil { return cid.Undef, err @@ -739,7 +738,7 @@ func (cs *ChainStore) LoadSignedMessagesFromCids(cids []cid.Cid) ([]*types.Signe return msgs, nil } -func (cs *ChainStore) Blockstore() blockstore.Blockstore { +func (cs *ChainStore) Blockstore() bstore.Blockstore { return cs.bs }