Skip to content

Commit

Permalink
Revert use of compression.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Jan 16, 2024
1 parent b618429 commit 93c8b13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions connectionprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/encoding/gzip"
)

var (
Expand Down Expand Up @@ -67,9 +66,11 @@ func (c *PuddleConnectionProvider) obtainOrCreatePool(address string) *puddle.Po
grpc.WithTransportCredentials(c.credentials),
grpc.WithDefaultCallOptions(
// Maximum message receive size is 128 MB.
grpc.MaxCallRecvMsgSize(128*1024*1024),
grpc.MaxCallRecvMsgSize(128 * 1024 * 1024),
// Use compression if available.
grpc.UseCompressor(gzip.Name),
// Cannot enable unilaterally; need to wait for Dirk server to support this to avoid
// miscommunication.
// grpc.UseCompressor(gzip.Name),
),
grpc.WithStatsHandler(otelgrpc.NewClientHandler()),
}...)
Expand Down

0 comments on commit 93c8b13

Please sign in to comment.