mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-29 15:30:03 +08:00 
			
		
		
		
	fix
This commit is contained in:
		
							parent
							
								
									d467381b6f
								
							
						
					
					
						commit
						a2bbb6aff6
					
				| @ -1243,7 +1243,7 @@ func (m *MsgMgo) GetDocIDs(ctx context.Context) ([]string, error) { | |||||||
| 	} else { | 	} else { | ||||||
| 		rand.Seed(uint64(time.Now().UnixMilli())) | 		rand.Seed(uint64(time.Now().UnixMilli())) | ||||||
| 		skip = rand.Intn(int(count / int64(limit))) | 		skip = rand.Intn(int(count / int64(limit))) | ||||||
| 		offset = skip * (int(count) / limit) | 		offset = skip * limit | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	res, err := mongoutil.Aggregate[*model.MsgDocModel](ctx, m.coll, []bson.M{ | 	res, err := mongoutil.Aggregate[*model.MsgDocModel](ctx, m.coll, []bson.M{ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user