I see some methods WithCompression
and UseCompression
but I'm not very clear how they all fit together - a simple example of what to put in the client and what to put in the server would really help.
My first attempt,
conn, err := grpc.Dial(
addr,
grpc.WithTimeout(timeout),
grpc.WithCompressor(grpc.NewGZIPCompressor()),
...
resulted in this error when I made a call:
grpc: Decompressor is not installed for grpc-encoding \"gzip\"