Commit 1eddb60f authored by Kevin Atkinson's avatar Kevin Atkinson

filestore util: doc improvement

License: MIT
Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
parent 620b52b2
......@@ -7,8 +7,8 @@ import (
cmds "github.com/ipfs/go-ipfs/commands"
"github.com/ipfs/go-ipfs/core"
"github.com/ipfs/go-ipfs/filestore"
u "gx/ipfs/QmZuY8aV7zbNXVy6DyN9SmnuH3o9nG852F4aTiSBpts8d1/go-ipfs-util"
cid "gx/ipfs/QmV5gPoRsjN1Gid3LMdNZTyfCtP2DsvqEbMAmz82RmmiGk/go-cid"
u "gx/ipfs/QmZuY8aV7zbNXVy6DyN9SmnuH3o9nG852F4aTiSBpts8d1/go-ipfs-util"
)
var FileStoreCmd = &cmds.Command{
......@@ -160,7 +160,7 @@ For ERROR entries the error will also be printed to stderr.
var dupsFileStore = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Print block both in filestore and non-filestore.",
Tagline: "List blocks that are both in the filestore and standard block storage.",
},
Run: func(req cmds.Request, res cmds.Response) {
_, fs, err := getFilestore(req)
......@@ -195,7 +195,6 @@ var dupsFileStore = &cmds.Command{
Type: RefWrapper{},
}
func getFilestore(req cmds.Request) (*core.IpfsNode, *filestore.Filestore, error) {
n, err := req.InvocContext().GetNode()
if err != nil {
......@@ -250,4 +249,3 @@ func perKeyActionToChan(args []string, action func(*cid.Cid) *filestore.ListRes,
}()
return out
}
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