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
17354d77
Commit
17354d77
authored
7 years ago
by
Steven Allen
Browse files
Options
Download
Email Patches
Plain Diff
get rid of debugging code
parent
34421451
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
p2p/net/mock/mock_conn.go
+0
-18
p2p/net/mock/mock_conn.go
with
0 additions
and
18 deletions
+0
-18
p2p/net/mock/mock_conn.go
View file @
17354d77
...
...
@@ -2,12 +2,7 @@ package mocknet
import
(
"container/list"
"fmt"
"os"
"os/signal"
"runtime"
"sync"
"syscall"
process
"github.com/jbenet/goprocess"
ic
"github.com/libp2p/go-libp2p-crypto"
...
...
@@ -16,19 +11,6 @@ import (
ma
"github.com/multiformats/go-multiaddr"
)
func
init
()
{
go
func
()
{
sigs
:=
make
(
chan
os
.
Signal
,
1
)
signal
.
Notify
(
sigs
,
syscall
.
SIGQUIT
)
buf
:=
make
([]
byte
,
1
<<
20
)
for
{
<-
sigs
stacklen
:=
runtime
.
Stack
(
buf
,
true
)
fmt
.
Printf
(
"=== received SIGQUIT ===
\n
*** goroutine dump...
\n
%s
\n
*** end
\n
"
,
buf
[
:
stacklen
])
}
}()
}
// conn represents one side's perspective of a
// live connection between two peers.
// it goes over a particular link.
...
...
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