vendor: update all dependencies
This commit is contained in:
+5
-2
@@ -17,6 +17,7 @@ package pubsub // import "cloud.google.com/go/pubsub"
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"google.golang.org/api/iterator"
|
||||
"google.golang.org/api/option"
|
||||
@@ -36,7 +37,6 @@ const (
|
||||
)
|
||||
|
||||
const prodAddr = "https://pubsub.googleapis.com/"
|
||||
const userAgent = "gcloud-golang-pubsub/20160927"
|
||||
|
||||
// Client is a Google Pub/Sub client scoped to a single project.
|
||||
//
|
||||
@@ -59,7 +59,10 @@ func NewClient(ctx context.Context, projectID string, opts ...option.ClientOptio
|
||||
}
|
||||
o = []option.ClientOption{option.WithGRPCConn(conn)}
|
||||
} else {
|
||||
o = []option.ClientOption{option.WithUserAgent(userAgent)}
|
||||
o = []option.ClientOption{
|
||||
// Create multiple connections to increase throughput.
|
||||
option.WithGRPCConnectionPool(runtime.GOMAXPROCS(0)),
|
||||
}
|
||||
}
|
||||
o = append(o, opts...)
|
||||
s, err := newPubSubService(ctx, o)
|
||||
|
||||
Reference in New Issue
Block a user