fix: whitespace
This commit is contained in:
parent
034dc15cfa
commit
54b59e6644
|
@ -32,8 +32,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"net/http"
|
"net/http"
|
||||||
_ "net/http/pprof"
|
_ "net/http/pprof"
|
||||||
|
|
||||||
"github.com/libp2p/go-libp2p"
|
"github.com/libp2p/go-libp2p"
|
||||||
"github.com/libp2p/go-libp2p/core/crypto"
|
"github.com/libp2p/go-libp2p/core/crypto"
|
||||||
|
@ -58,10 +58,10 @@ func RegisterObservationCallback(f C.callback_t, network_id, bootstrap_addrs, li
|
||||||
bootstrapAddrs := strings.Split(C.GoString(bootstrap_addrs), ",")
|
bootstrapAddrs := strings.Split(C.GoString(bootstrap_addrs), ",")
|
||||||
listenAddrs := strings.Split(C.GoString(listen_addrs), ",")
|
listenAddrs := strings.Split(C.GoString(listen_addrs), ",")
|
||||||
|
|
||||||
// Bind pprof to 6060 for debugging Go code.
|
// Bind pprof to 6060 for debugging Go code.
|
||||||
go func() {
|
go func() {
|
||||||
http.ListenAndServe("127.0.0.1:6060", nil)
|
http.ListenAndServe("127.0.0.1:6060", nil)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
var startTime int64
|
var startTime int64
|
||||||
var recoverRerun func()
|
var recoverRerun func()
|
||||||
|
|
Loading…
Reference in New Issue