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-unixfs
Commits
7bc4fbfa
Commit
7bc4fbfa
authored
10 years ago
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turn logging on by default, also make Provide not fail when no peers connected
parent
adcf0bfe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
cmd/ipfs/ipfs.go
cmd/ipfs/ipfs.go
+1
-1
cmd/ipfs/mount_unix.go
cmd/ipfs/mount_unix.go
+0
-1
routing/dht/routing.go
routing/dht/routing.go
+1
-1
No files found.
cmd/ipfs/ipfs.go
View file @
7bc4fbfa
...
...
@@ -62,7 +62,7 @@ func ipfsCmd(c *commander.Command, args []string) error {
}
func
main
()
{
//
u.Debug = true
u
.
Debug
=
true
err
:=
CmdIpfs
.
Dispatch
(
os
.
Args
[
1
:
])
if
err
!=
nil
{
if
len
(
err
.
Error
())
>
0
{
...
...
This diff is collapsed.
Click to expand it.
cmd/ipfs/mount_unix.go
View file @
7bc4fbfa
...
...
@@ -30,7 +30,6 @@ var cmdIpfsMount = &commander.Command{
}
func
mountCmd
(
c
*
commander
.
Command
,
inp
[]
string
)
error
{
u
.
Debug
=
false
if
len
(
inp
)
<
1
||
len
(
inp
[
0
])
==
0
{
u
.
POut
(
c
.
Long
)
return
nil
...
...
This diff is collapsed.
Click to expand it.
routing/dht/routing.go
View file @
7bc4fbfa
...
...
@@ -194,7 +194,7 @@ func (dht *IpfsDHT) FindProviders(ctx context.Context, key u.Key) ([]*peer.Peer,
u
.
DOut
(
"Find providers for: '%s'
\n
"
,
key
)
p
:=
dht
.
routingTables
[
0
]
.
NearestPeer
(
kb
.
ConvertKey
(
key
))
if
p
==
nil
{
return
nil
,
kb
.
ErrLookupFailure
return
nil
,
nil
}
for
level
:=
0
;
level
<
len
(
dht
.
routingTables
);
{
...
...
This diff is collapsed.
Click to expand it.
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