index out of range
This commit is contained in:
		
							parent
							
								
									212400b635
								
							
						
					
					
						commit
						179458efe9
					
				
							
								
								
									
										4
									
								
								extern/storage-sealing/commit_batch.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								extern/storage-sealing/commit_batch.go
									
									
									
									
										vendored
									
									
								
							| @ -297,6 +297,10 @@ func (b *CommitBatcher) processBatch(cfg sealiface.Config) ([]sealiface.CommitBa | ||||
| 		infos = append(infos, p.Info) | ||||
| 	} | ||||
| 
 | ||||
| 	if len(infos) == 0 { | ||||
| 		return nil, nil | ||||
| 	} | ||||
| 
 | ||||
| 	sort.Slice(infos, func(i, j int) bool { | ||||
| 		return infos[i].Number < infos[j].Number | ||||
| 	}) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user