Commit f1dd3185 authored by Aviv Eyal's avatar Aviv Eyal Committed by Steven Allen
Browse files

Formatting

parent c6bfb4d9
...@@ -26,10 +26,10 @@ type PingProtocol struct { ...@@ -26,10 +26,10 @@ type PingProtocol struct {
} }
func NewPingProtocol(host host.Host, done chan bool) *PingProtocol { func NewPingProtocol(host host.Host, done chan bool) *PingProtocol {
p := PingProtocol{host: host, requests: make(map[string]*p2p.PingRequest), done: done} p := &PingProtocol{host: host, requests: make(map[string]*p2p.PingRequest), done: done}
host.SetStreamHandler(pingRequest, p.onPingRequest) host.SetStreamHandler(pingRequest, p.onPingRequest)
host.SetStreamHandler(pingResponse, p.onPingResponse) host.SetStreamHandler(pingResponse, p.onPingResponse)
return &p return p
} }
// remote peer requests handler // remote peer requests handler
......
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