Commit ea95a94e authored by Steven Allen's avatar Steven Allen
Browse files

register identify service netNotify

This way, we actually process disconnect notifications (and reduce the lifetime
on peer addr records).
parent 096a2c83
......@@ -65,6 +65,7 @@ func NewIDService(h host.Host) *IDService {
currid: make(map[inet.Conn]chan struct{}),
}
h.SetStreamHandler(ID, s.RequestHandler)
h.Network().Notify((*netNotifiee)(s))
return s
}
......
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