MCPcopy
hub / github.com/grpc/grpc-go / after

Method after

rpc_util.go:328–332  ·  view source on GitHub ↗
(_ *callInfo, attempt *csAttempt)

Source from the content-addressed store, hash-verified

326
327func (o PeerCallOption) before(*callInfo) error { return nil }
328func (o PeerCallOption) after(_ *callInfo, attempt *csAttempt) {
329 if x, ok := peer.FromContext(attempt.transportStream.Context()); ok {
330 *o.PeerAddr = *x
331 }
332}
333
334// WaitForReady configures the RPC's behavior when the client is in
335// TRANSIENT_FAILURE, which occurs when all addresses fail to connect. If

Callers

nothing calls this directly

Calls 2

FromContextFunction · 0.92
ContextMethod · 0.65

Tested by

no test coverage detected