mirror of https://github.com/grpc/grpc-go.git
documentation: mention peer will only be populated after RPC completes (#1982)
This commit is contained in:
parent
b1807c3189
commit
858463ac27
|
|
@ -228,8 +228,8 @@ func (o TrailerCallOption) after(c *callInfo) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Peer returns a CallOption that retrieves peer information for a
|
// Peer returns a CallOption that retrieves peer information for a unary RPC.
|
||||||
// unary RPC.
|
// The peer field will be populated *after* the RPC completes.
|
||||||
func Peer(p *peer.Peer) CallOption {
|
func Peer(p *peer.Peer) CallOption {
|
||||||
return PeerCallOption{PeerAddr: p}
|
return PeerCallOption{PeerAddr: p}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue