TBR namespace: Add opts to each call that has underlying RPCs
to pass CallOpts to those RPCs.
MultiPart: 2/2
Change-Id: I7a25bbce2c3aa9303bfafb57e4dd14a53ad88a9b
diff --git a/profiles/internal/rpc/client.go b/profiles/internal/rpc/client.go
index 9905f55..603f60f 100644
--- a/profiles/internal/rpc/client.go
+++ b/profiles/internal/rpc/client.go
@@ -273,7 +273,7 @@
shouldRetry = false
case time.Now().After(deadline):
shouldRetry = false
- case action == verror.RetryRefetch && getNoResolveOpt(opts):
+ case action == verror.RetryRefetch && getNoNamespaceOpt(opts):
// If we're skipping resolution and there are no servers for
// this call retrying is not going to help, we can't come up
// with new servers if there is no resolution.
@@ -373,7 +373,7 @@
var err error
var blessingPattern security.BlessingPattern
blessingPattern, name = security.SplitPatternName(name)
- if resolved, err = c.ns.Resolve(ctx, name, getResolveOpts(opts)...); err != nil {
+ if resolved, err = c.ns.Resolve(ctx, name, getNamespaceOpts(opts)...); err != nil {
vlog.Errorf("Resolve: %v", err)
// We always return NoServers as the error so that the caller knows
// that's ok to retry the operation since the name may be registered