Skip to content

Commit

Permalink
try trimming address
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonSc committed May 14, 2024
1 parent 01bf12c commit f242ab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func New(ctx context.Context, address string, opts ...ClientOpt) (*Client, error
gopts = append(gopts, grpc.WithChainStreamInterceptor(stream...))
gopts = append(gopts, customDialOptions...)

address = strings.Trim(address, "tcp://")
fmt.Println("address: " + address)
conn, err := grpc.DialContext(ctx, address, gopts...)
if err != nil {
Expand Down

0 comments on commit f242ab1

Please sign in to comment.