Skip to content

Commit

Permalink
fix(pubsub): use GRPCConnPool option for subscriber client (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongalex committed Jul 21, 2020
1 parent dba1ddb commit 6121668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub/pubsub.go
Expand Up @@ -80,7 +80,7 @@ func NewClient(ctx context.Context, projectID string, opts ...option.ClientOptio
if err != nil {
return nil, fmt.Errorf("pubsub: %v", err)
}
subc, err := vkit.NewSubscriberClient(ctx, option.WithGRPCConn(pubc.Connection()))
subc, err := vkit.NewSubscriberClient(ctx, o...)
if err != nil {
// Should never happen, since we are passing in the connection.
// If it does, we cannot close, because the user may have passed in their
Expand Down

0 comments on commit 6121668

Please sign in to comment.