Skip to content

Commit

Permalink
fix(pubsub): use GRPCConnPool option for subscriber client (googleapi…
Browse files Browse the repository at this point in the history
  • Loading branch information
hongalex authored and tritone committed Aug 25, 2020
1 parent 45ce735 commit 10ab90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub/pubsub.go
Original file line number Diff line number Diff line change
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 10ab90d

Please sign in to comment.