@@ -89,12 +89,11 @@ func (c *clientConn) Invoke(ctx context.Context, method string, args any, reply
8989 // connect in order to not block the caller indefinitely.
9090 // If for whatever reason the LOOPP is down the caller should retry whatever
9191 // call they were making.
92- c .Logger .Warnw ("clientConn: Invoke: context canceled , stopping refresh" ,
92+ c .Logger .Warnw ("clientConn: Invoke: context done , stopping refresh" ,
9393 "method" , method ,
9494 "err" , err ,
9595 "ctxErr" , ctx .Err ())
96- // TODO: also return ctx.Err()?
97- return err
96+ return ctx .Err ()
9897 }
9998 if method == pb .Service_Close_FullMethodName {
10099 // don't reconnect just to call Close
@@ -128,12 +127,11 @@ func (c *clientConn) NewStream(ctx context.Context, desc *grpc.StreamDesc, metho
128127 // connect in order to not block the caller indefinitely.
129128 // If for whatever reason the LOOPP is down the caller should retry whatever
130129 // call they were making.
131- c .Logger .Warnw ("clientConn: NewStream: context canceled , stopping refresh" ,
130+ c .Logger .Warnw ("clientConn: NewStream: context done , stopping refresh" ,
132131 "method" , method ,
133132 "err" , err ,
134133 "ctxErr" , ctx .Err ())
135- // TODO: also return ctx.Err()?
136- return s , err
134+ return s , ctx .Err ()
137135 }
138136 c .Logger .Errorw ("clientConn: NewStream: terminal error, refreshing connection" , "err" , err )
139137 cc , refErr = c .refresh (ctx , cc )
0 commit comments