mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 12:22:24 -05:00 
			
		
		
		
	[chore]: Bump github.com/minio/minio-go/v7 from 7.0.80 to 7.0.81 (#3590)
Bumps [github.com/minio/minio-go/v7](https://github.com/minio/minio-go) from 7.0.80 to 7.0.81. - [Release notes](https://github.com/minio/minio-go/releases) - [Commits](https://github.com/minio/minio-go/compare/v7.0.80...v7.0.81) --- updated-dependencies: - dependency-name: github.com/minio/minio-go/v7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								c9d36f7e45
							
						
					
				
			
			
				commit
				
					
						936b269b05
					
				
			
		
					 12 changed files with 603 additions and 1579 deletions
				
			
		
							
								
								
									
										10
									
								
								vendor/github.com/minio/minio-go/v7/retry.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/github.com/minio/minio-go/v7/retry.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -45,7 +45,7 @@ var DefaultRetryCap = time.Second | |||
| 
 | ||||
| // newRetryTimer creates a timer with exponentially increasing | ||||
| // delays until the maximum retry attempts are reached. | ||||
| func (c *Client) newRetryTimer(ctx context.Context, maxRetry int, unit, cap time.Duration, jitter float64) <-chan int { | ||||
| func (c *Client) newRetryTimer(ctx context.Context, maxRetry int, baseSleep, maxSleep time.Duration, jitter float64) <-chan int { | ||||
| 	attemptCh := make(chan int) | ||||
| 
 | ||||
| 	// computes the exponential backoff duration according to | ||||
|  | @ -59,10 +59,10 @@ func (c *Client) newRetryTimer(ctx context.Context, maxRetry int, unit, cap time | |||
| 			jitter = MaxJitter | ||||
| 		} | ||||
| 
 | ||||
| 		// sleep = random_between(0, min(cap, base * 2 ** attempt)) | ||||
| 		sleep := unit * time.Duration(1<<uint(attempt)) | ||||
| 		if sleep > cap { | ||||
| 			sleep = cap | ||||
| 		// sleep = random_between(0, min(maxSleep, base * 2 ** attempt)) | ||||
| 		sleep := baseSleep * time.Duration(1<<uint(attempt)) | ||||
| 		if sleep > maxSleep { | ||||
| 			sleep = maxSleep | ||||
| 		} | ||||
| 		if jitter != NoJitter { | ||||
| 			sleep -= time.Duration(c.random.Float64() * float64(sleep) * jitter) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue