build(deps): bump google.golang.org/grpc from 1.60.1 to 1.61.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.60.1 to 1.61.0. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](https://github.com/grpc/grpc-go/compare/v1.60.1...v1.61.0) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
		
							
								
								
									
										8
									
								
								vendor/google.golang.org/grpc/rpc_util.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/google.golang.org/grpc/rpc_util.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -640,14 +640,18 @@ func encode(c baseCodec, msg any) ([]byte, error) {
 | 
			
		||||
	return b, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// compress returns the input bytes compressed by compressor or cp.  If both
 | 
			
		||||
// compressors are nil, returns nil.
 | 
			
		||||
// compress returns the input bytes compressed by compressor or cp.
 | 
			
		||||
// If both compressors are nil, or if the message has zero length, returns nil,
 | 
			
		||||
// indicating no compression was done.
 | 
			
		||||
//
 | 
			
		||||
// TODO(dfawley): eliminate cp parameter by wrapping Compressor in an encoding.Compressor.
 | 
			
		||||
func compress(in []byte, cp Compressor, compressor encoding.Compressor) ([]byte, error) {
 | 
			
		||||
	if compressor == nil && cp == nil {
 | 
			
		||||
		return nil, nil
 | 
			
		||||
	}
 | 
			
		||||
	if len(in) == 0 {
 | 
			
		||||
		return nil, nil
 | 
			
		||||
	}
 | 
			
		||||
	wrapErr := func(err error) error {
 | 
			
		||||
		return status.Errorf(codes.Internal, "grpc: error while compressing: %v", err.Error())
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user