mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 16:12:24 -05:00 
			
		
		
		
	[chore] Bump otel deps -> v1.30.0/v0.52.0 (#3307)
This commit is contained in:
		
					parent
					
						
							
								9046220979
							
						
					
				
			
			
				commit
				
					
						b2572b9e07
					
				
			
		
					 97 changed files with 3438 additions and 1645 deletions
				
			
		
							
								
								
									
										27
									
								
								vendor/google.golang.org/grpc/dialoptions.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								vendor/google.golang.org/grpc/dialoptions.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -33,6 +33,7 @@ import ( | |||
| 	"google.golang.org/grpc/internal/binarylog" | ||||
| 	"google.golang.org/grpc/internal/transport" | ||||
| 	"google.golang.org/grpc/keepalive" | ||||
| 	"google.golang.org/grpc/mem" | ||||
| 	"google.golang.org/grpc/resolver" | ||||
| 	"google.golang.org/grpc/stats" | ||||
| ) | ||||
|  | @ -60,7 +61,7 @@ func init() { | |||
| 	internal.WithBinaryLogger = withBinaryLogger | ||||
| 	internal.JoinDialOptions = newJoinDialOption | ||||
| 	internal.DisableGlobalDialOptions = newDisableGlobalDialOptions | ||||
| 	internal.WithRecvBufferPool = withRecvBufferPool | ||||
| 	internal.WithBufferPool = withBufferPool | ||||
| } | ||||
| 
 | ||||
| // dialOptions configure a Dial call. dialOptions are set by the DialOption | ||||
|  | @ -92,7 +93,6 @@ type dialOptions struct { | |||
| 	defaultServiceConfigRawJSON *string | ||||
| 	resolvers                   []resolver.Builder | ||||
| 	idleTimeout                 time.Duration | ||||
| 	recvBufferPool              SharedBufferPool | ||||
| 	defaultScheme               string | ||||
| 	maxCallAttempts             int | ||||
| } | ||||
|  | @ -677,11 +677,11 @@ func defaultDialOptions() dialOptions { | |||
| 			WriteBufferSize: defaultWriteBufSize, | ||||
| 			UseProxy:        true, | ||||
| 			UserAgent:       grpcUA, | ||||
| 			BufferPool:      mem.DefaultBufferPool(), | ||||
| 		}, | ||||
| 		bs:              internalbackoff.DefaultExponential, | ||||
| 		healthCheckFunc: internal.HealthCheckFunc, | ||||
| 		idleTimeout:     30 * time.Minute, | ||||
| 		recvBufferPool:  nopBufferPool{}, | ||||
| 		defaultScheme:   "dns", | ||||
| 		maxCallAttempts: defaultMaxCallAttempts, | ||||
| 	} | ||||
|  | @ -758,25 +758,8 @@ func WithMaxCallAttempts(n int) DialOption { | |||
| 	}) | ||||
| } | ||||
| 
 | ||||
| // WithRecvBufferPool returns a DialOption that configures the ClientConn | ||||
| // to use the provided shared buffer pool for parsing incoming messages. Depending | ||||
| // on the application's workload, this could result in reduced memory allocation. | ||||
| // | ||||
| // If you are unsure about how to implement a memory pool but want to utilize one, | ||||
| // begin with grpc.NewSharedBufferPool. | ||||
| // | ||||
| // Note: The shared buffer pool feature will not be active if any of the following | ||||
| // options are used: WithStatsHandler, EnableTracing, or binary logging. In such | ||||
| // cases, the shared buffer pool will be ignored. | ||||
| // | ||||
| // Deprecated: use experimental.WithRecvBufferPool instead.  Will be deleted in | ||||
| // v1.60.0 or later. | ||||
| func WithRecvBufferPool(bufferPool SharedBufferPool) DialOption { | ||||
| 	return withRecvBufferPool(bufferPool) | ||||
| } | ||||
| 
 | ||||
| func withRecvBufferPool(bufferPool SharedBufferPool) DialOption { | ||||
| func withBufferPool(bufferPool mem.BufferPool) DialOption { | ||||
| 	return newFuncDialOption(func(o *dialOptions) { | ||||
| 		o.recvBufferPool = bufferPool | ||||
| 		o.copts.BufferPool = bufferPool | ||||
| 	}) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue