mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	migration: github: if rate limit is not enabled, ignore it (#15490)
This commit is contained in:
		| @@ -132,6 +132,11 @@ func (g *GithubDownloaderV3) sleep() { | ||||
| func (g *GithubDownloaderV3) RefreshRate() error { | ||||
| 	rates, _, err := g.client.RateLimits(g.ctx) | ||||
| 	if err != nil { | ||||
| 		// if rate limit is not enabled, ignore it | ||||
| 		if strings.Contains(err.Error(), "404") { | ||||
| 			g.rate = nil | ||||
| 			return nil | ||||
| 		} | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user