fix doc comment

This commit is contained in:
Yusef Napora 2019-11-08 11:12:14 -05:00
parent b8de7fa7f3
commit 37987396db

View File

@ -21,7 +21,8 @@ func RoutingStateFromHost(h Host) *routing.RoutingState {
return routing.RoutingStateFromAddrInfo(InfoFromHost(h)) return routing.RoutingStateFromAddrInfo(InfoFromHost(h))
} }
// SignedRoutingStateFromHost // SignedRoutingStateFromHost wraps a routing.RoutingState record in a
// SignedEnvelope, signed with the Host's private key.
func SignedRoutingStateFromHost(h Host) (*crypto.SignedEnvelope, error) { func SignedRoutingStateFromHost(h Host) (*crypto.SignedEnvelope, error) {
privKey := h.Peerstore().PrivKey(h.ID()) privKey := h.Peerstore().PrivKey(h.ID())
if privKey == nil { if privKey == nil {