aboutsummaryrefslogtreecommitdiff
path: root/vendor/google.golang.org/grpc/codec.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2017-12-18 11:50:56 -0600
committerGravatar GitHub <noreply@github.com> 2017-12-18 11:50:56 -0600
commit4dd40a292c773aad5eee761940840de64ba9090a (patch)
treee7b872bed228fdf06b4ea91db60bf9b7cc8fec2a /vendor/google.golang.org/grpc/codec.go
parentba4e77672c9f7b53a8c2f6e197d3f12ede1e46cd (diff)
downloadcoredns-4dd40a292c773aad5eee761940840de64ba9090a.tar.gz
coredns-4dd40a292c773aad5eee761940840de64ba9090a.tar.zst
coredns-4dd40a292c773aad5eee761940840de64ba9090a.zip
Update apache/thrift to 0.11.0 and remove pinning (#1317)
The `apache/thrift` recently released a new version of `0.11.0` several days ago. This release is compatible with other packages and as such, there is no need to pinning the `apache/thrift` to `master` anymore in Gopkg.toml. This fix removes the pinning of `apache/thrift` in Gopkg.toml, and updates all dependencies of coredns. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'vendor/google.golang.org/grpc/codec.go')
-rw-r--r--vendor/google.golang.org/grpc/codec.go18
1 files changed, 8 insertions, 10 deletions
diff --git a/vendor/google.golang.org/grpc/codec.go b/vendor/google.golang.org/grpc/codec.go
index 905b048e2..b452a4ae8 100644
--- a/vendor/google.golang.org/grpc/codec.go
+++ b/vendor/google.golang.org/grpc/codec.go
@@ -92,13 +92,11 @@ func (protoCodec) String() string {
return "proto"
}
-var (
- protoBufferPool = &sync.Pool{
- New: func() interface{} {
- return &cachedProtoBuffer{
- Buffer: proto.Buffer{},
- lastMarshaledSize: 16,
- }
- },
- }
-)
+var protoBufferPool = &sync.Pool{
+ New: func() interface{} {
+ return &cachedProtoBuffer{
+ Buffer: proto.Buffer{},
+ lastMarshaledSize: 16,
+ }
+ },
+}