Skip to content

Commit

Permalink
revert package-comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
purnesh42H committed Sep 6, 2024
1 parent ca85deb commit ba338c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions examples/features/advancedtls/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*/

// Binary client is an example client demonstrating use of advancedtls,
// to set up a secure gRPC client connection with various TLS authentication
// methods.
package main

import (
Expand Down
2 changes: 0 additions & 2 deletions examples/features/advancedtls/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
*
*/

// Binary server is an example client demonstrating how to set up a secure gRPC
// server using advancedtls.
package main

Check failure on line 19 in examples/features/advancedtls/server/main.go

View workflow job for this annotation

GitHub Actions / tests (vet, 1.22)

should have a package comment

import (
Expand Down
4 changes: 2 additions & 2 deletions rpc_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -791,9 +791,9 @@ func checkRecvPayload(pf payloadFormat, recvCompress string, haveCompressor bool
if !haveCompressor {
if isServer {
return status.Newf(codes.Unimplemented, "grpc: Decompressor is not installed for grpc-encoding %q", recvCompress)
} else {
return status.Newf(codes.Internal, "grpc: Decompressor is not installed for grpc-encoding %q", recvCompress)
}
return status.Newf(codes.Internal, "grpc: Decompressor is not installed for grpc-encoding %q", recvCompress)

}
default:
return status.Newf(codes.Internal, "grpc: received unexpected payload format %d", pf)
Expand Down

0 comments on commit ba338c1

Please sign in to comment.