vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood
2017-07-23 08:51:42 +01:00
parent 0b6fba34a3
commit eb87cf6f12
2008 changed files with 352617 additions and 1004734 deletions
+5 -2
View File
@@ -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)