Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
0d38750d
Commit
0d38750d
authored
6 years ago
by
Marten Seemann
Browse files
Options
Download
Email Patches
Plain Diff
use the new DisableLogging mdns option, don't turn off logging globally
parent
1f1aca1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
p2p/discovery/mdns.go
+2
-4
p2p/discovery/mdns.go
package.json
+2
-2
package.json
with
4 additions
and
6 deletions
+4
-6
p2p/discovery/mdns.go
View file @
0d38750d
...
...
@@ -4,8 +4,6 @@ import (
"context"
"errors"
"io"
"io/ioutil"
golog
"log"
"net"
"sync"
"time"
...
...
@@ -64,8 +62,8 @@ func getDialableListenAddrs(ph host.Host) ([]*net.TCPAddr, error) {
func
NewMdnsService
(
ctx
context
.
Context
,
peerhost
host
.
Host
,
interval
time
.
Duration
,
serviceTag
string
)
(
Service
,
error
)
{
//
TODO:
dont let mdns use logging...
golog
.
SetOutput
(
ioutil
.
Discard
)
// don
'
t let mdns use logging...
mdns
.
DisableLogging
=
true
var
ipaddrs
[]
net
.
IP
port
:=
4001
...
...
This diff is collapsed.
Click to expand it.
package.json
View file @
0d38750d
...
...
@@ -14,9 +14,9 @@
"version"
:
"0.0.0"
},
{
"hash"
:
"Qm
NeRzgrSpwbMU7VKLRyfvbqf1nRrAiQ7fEXaBxWGT5Ygr
"
,
"hash"
:
"Qm
ekaTKpWkYGcn4ZEC5PwJDRCQHapwugmmG86g2Xpz5GBH
"
,
"name"
:
"mdns"
,
"version"
:
"0.
1.3
"
"version"
:
"0.
2.0
"
},
{
"hash"
:
"QmPdKqUcHGFdeSpvjVoaTRPPstGif9GBZb5Q56RVw9o69A"
,
...
...
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
Menu
Projects
Groups
Snippets
Help