Fix deprecation warnings in Praefect
Fix deprecation warnings in Praefect and change proxy.Codec() to return encoding.Codec instead of grpc.Codec.
Closes #2228 (closed)
Relates #1663 (closed)
Upstream changes: https://github.com/grpc/grpc-go/pull/2556
Edited by 🤖 GitLab Bot 🤖