mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	@@ -44,7 +44,7 @@ func addScratchHash(x *xorm.Engine) error {
 | 
				
			|||||||
	const batchSize = 100
 | 
						const batchSize = 100
 | 
				
			||||||
	for start := 0; ; start += batchSize {
 | 
						for start := 0; ; start += batchSize {
 | 
				
			||||||
		tfas := make([]*TwoFactor, 0, batchSize)
 | 
							tfas := make([]*TwoFactor, 0, batchSize)
 | 
				
			||||||
		if err := x.Limit(batchSize, start).Find(&tfas); err != nil {
 | 
							if err := sess.Limit(batchSize, start).Find(&tfas); err != nil {
 | 
				
			||||||
			return err
 | 
								return err
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if len(tfas) == 0 {
 | 
							if len(tfas) == 0 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user