documentation: mention peer will only be populated after RPC completes (#1982)
This commit is contained in:
@ -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}
|
||||
}
|
||||
|
Reference in New Issue
Block a user