mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 18:02:25 -05:00 
			
		
		
		
	[chore] update go dependencies (#4304)
- github.com/KimMachineGun/automemlimit v0.7.2 => v0.7.3
- github.com/gin-contrib/cors v1.7.5 => v1.7.6
- github.com/minio/minio-go/v7 v7.0.92 => v7.0.94
- github.com/spf13/cast v1.8.0 => v1.9.2
- github.com/uptrace/bun{,/*} v1.2.11 => v1.2.14
- golang.org/x/image v0.27.0 => v0.28.0
- golang.org/x/net v0.40.0 => v0.41.0
- code.superseriousbusiness.org/go-swagger v0.31.0-gts-go1.23-fix => v0.32.3-gts-go1.23-fix
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4304
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
	
	
This commit is contained in:
		
					parent
					
						
							
								7712885038
							
						
					
				
			
			
				commit
				
					
						8b0ea56027
					
				
			
		
					 294 changed files with 139999 additions and 21873 deletions
				
			
		
							
								
								
									
										25
									
								
								vendor/google.golang.org/grpc/clientconn.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								vendor/google.golang.org/grpc/clientconn.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -689,22 +689,31 @@ func (cc *ClientConn) Connect() { | |||
| 	cc.mu.Unlock() | ||||
| } | ||||
| 
 | ||||
| // waitForResolvedAddrs blocks until the resolver has provided addresses or the | ||||
| // context expires.  Returns nil unless the context expires first; otherwise | ||||
| // returns a status error based on the context. | ||||
| func (cc *ClientConn) waitForResolvedAddrs(ctx context.Context) error { | ||||
| // waitForResolvedAddrs blocks until the resolver provides addresses or the | ||||
| // context expires, whichever happens first. | ||||
| // | ||||
| // Error is nil unless the context expires first; otherwise returns a status | ||||
| // error based on the context. | ||||
| // | ||||
| // The returned boolean indicates whether it did block or not. If the | ||||
| // resolution has already happened once before, it returns false without | ||||
| // blocking. Otherwise, it wait for the resolution and return true if | ||||
| // resolution has succeeded or return false along with error if resolution has | ||||
| // failed. | ||||
| func (cc *ClientConn) waitForResolvedAddrs(ctx context.Context) (bool, error) { | ||||
| 	// This is on the RPC path, so we use a fast path to avoid the | ||||
| 	// more-expensive "select" below after the resolver has returned once. | ||||
| 	if cc.firstResolveEvent.HasFired() { | ||||
| 		return nil | ||||
| 		return false, nil | ||||
| 	} | ||||
| 	internal.NewStreamWaitingForResolver() | ||||
| 	select { | ||||
| 	case <-cc.firstResolveEvent.Done(): | ||||
| 		return nil | ||||
| 		return true, nil | ||||
| 	case <-ctx.Done(): | ||||
| 		return status.FromContextError(ctx.Err()).Err() | ||||
| 		return false, status.FromContextError(ctx.Err()).Err() | ||||
| 	case <-cc.ctx.Done(): | ||||
| 		return ErrClientConnClosing | ||||
| 		return false, ErrClientConnClosing | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue