Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
1eddb60f
Commit
1eddb60f
authored
Mar 22, 2017
by
Kevin Atkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filestore util: doc improvement
License: MIT Signed-off-by:
Kevin Atkinson
<
k@kevina.org
>
parent
620b52b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
core/commands/filestore.go
core/commands/filestore.go
+2
-4
No files found.
core/commands/filestore.go
View file @
1eddb60f
...
...
@@ -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
:
"
Prin
t block both in filestore and
non-file
store."
,
Tagline
:
"
Lis
t block
s that are
both in
the
filestore and
standard block
stor
ag
e."
,
},
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment