mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:12:25 -05:00 
			
		
		
		
	[chore] Update a bunch of database dependencies (#1772)
* [chore] Update a bunch of database dependencies * fix lil thing
This commit is contained in:
		
					parent
					
						
							
								66df974143
							
						
					
				
			
			
				commit
				
					
						ec325fee14
					
				
			
		
					 402 changed files with 35068 additions and 35401 deletions
				
			
		
							
								
								
									
										17
									
								
								vendor/google.golang.org/grpc/dialoptions.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/google.golang.org/grpc/dialoptions.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -38,13 +38,14 @@ import ( | |||
| 
 | ||||
| func init() { | ||||
| 	internal.AddGlobalDialOptions = func(opt ...DialOption) { | ||||
| 		extraDialOptions = append(extraDialOptions, opt...) | ||||
| 		globalDialOptions = append(globalDialOptions, opt...) | ||||
| 	} | ||||
| 	internal.ClearGlobalDialOptions = func() { | ||||
| 		extraDialOptions = nil | ||||
| 		globalDialOptions = nil | ||||
| 	} | ||||
| 	internal.WithBinaryLogger = withBinaryLogger | ||||
| 	internal.JoinDialOptions = newJoinDialOption | ||||
| 	internal.DisableGlobalDialOptions = newDisableGlobalDialOptions | ||||
| } | ||||
| 
 | ||||
| // dialOptions configure a Dial call. dialOptions are set by the DialOption | ||||
|  | @ -83,7 +84,7 @@ type DialOption interface { | |||
| 	apply(*dialOptions) | ||||
| } | ||||
| 
 | ||||
| var extraDialOptions []DialOption | ||||
| var globalDialOptions []DialOption | ||||
| 
 | ||||
| // EmptyDialOption does not alter the dial configuration. It can be embedded in | ||||
| // another structure to build custom dial options. | ||||
|  | @ -96,6 +97,16 @@ type EmptyDialOption struct{} | |||
| 
 | ||||
| func (EmptyDialOption) apply(*dialOptions) {} | ||||
| 
 | ||||
| type disableGlobalDialOptions struct{} | ||||
| 
 | ||||
| func (disableGlobalDialOptions) apply(*dialOptions) {} | ||||
| 
 | ||||
| // newDisableGlobalDialOptions returns a DialOption that prevents the ClientConn | ||||
| // from applying the global DialOptions (set via AddGlobalDialOptions). | ||||
| func newDisableGlobalDialOptions() DialOption { | ||||
| 	return &disableGlobalDialOptions{} | ||||
| } | ||||
| 
 | ||||
| // funcDialOption wraps a function that modifies dialOptions into an | ||||
| // implementation of the DialOption interface. | ||||
| type funcDialOption struct { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue