get rid of debugging code
@@ -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.
