Skip to content

Commit 18ea894

Browse files
Fixed error returning in clientpool.go
1 parent 300d704 commit 18ea894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/grpcpool/clientpool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (p *ClientPool) GetConn(addr string, errCh chan<-error) (*grpc.ClientConn,
4343
/* create a new client for gRPC server */
4444
newConn, err := grpc.NewClient(addr, p.dialOptions...)
4545
if err != nil {
46-
return nil, fmt.Errorf("failed to add new connection", err)
46+
return nil, fmt.Errorf("failed to add new connection: %w", err)
4747
}
4848

4949
/* add connection to the pool */

0 commit comments

Comments
 (0)