File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -447,6 +447,9 @@ func (c *conn) NewStream(
447447}
448448
449449func (c * conn ) wrapError (err error ) error {
450+ if err == nil {
451+ return nil
452+ }
450453 nodeErr := newNodeError (c .endpoint .NodeID (), c .endpoint .Address (), err )
451454 return xerrors .WithStackTrace (nodeErr , xerrors .WithSkipDepth (1 ))
452455}
Original file line number Diff line number Diff line change @@ -125,6 +125,10 @@ func (s *grpcClientStream) RecvMsg(m interface{}) (err error) {
125125}
126126
127127func (s * grpcClientStream ) wrapError (err error ) error {
128+ if err == nil {
129+ return nil
130+ }
131+
128132 nodeErr := newNodeError (s .c .endpoint .NodeID (), s .c .endpoint .Address (), err )
129133 return xerrors .WithStackTrace (nodeErr , xerrors .WithSkipDepth (1 ))
130134}
You can’t perform that action at this time.
0 commit comments