documentation: mention peer will only be populated after RPC completes (#1982)

This commit is contained in:
Menghan Li
2018-04-10 15:56:38 -07:00
committed by GitHub
parent b1807c3189
commit 858463ac27

View File

@ -228,8 +228,8 @@ func (o TrailerCallOption) after(c *callInfo) {
}
}
// Peer returns a CallOption that retrieves peer information for a
// unary RPC.
// Peer returns a CallOption that retrieves peer information for a unary RPC.
// The peer field will be populated *after* the RPC completes.
func Peer(p *peer.Peer) CallOption {
return PeerCallOption{PeerAddr: p}
}