mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 07:42:26 -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-continous.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/github.com/minio/minio-go/v7/retry-continous.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -20,7 +20,7 @@ package minio | |||
| import "time" | ||||
| 
 | ||||
| // newRetryTimerContinous creates a timer with exponentially increasing delays forever. | ||||
| func (c *Client) newRetryTimerContinous(unit, cap time.Duration, jitter float64, doneCh chan struct{}) <-chan int { | ||||
| func (c *Client) newRetryTimerContinous(baseSleep, maxSleep time.Duration, jitter float64, doneCh chan struct{}) <-chan int { | ||||
| 	attemptCh := make(chan int) | ||||
| 
 | ||||
| 	// normalize jitter to the range [0, 1.0] | ||||
|  | @ -39,10 +39,10 @@ func (c *Client) newRetryTimerContinous(unit, cap time.Duration, jitter float64, | |||
| 		if attempt > maxAttempt { | ||||
| 			attempt = maxAttempt | ||||
| 		} | ||||
| 		// 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