Commit 17354d77 authored by Steven Allen's avatar Steven Allen
Browse files

get rid of debugging code

parent 34421451
Showing with 0 additions and 18 deletions
+0 -18
......@@ -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.
......
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