Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Sep 21, 2023
1 parent ecfef53 commit 057d5bc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion coordinator/internal/orm/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (*Batch) TableName() string {
}

// GetUnassignedBatch retrieves unassigned batch based on the specified limit.
// The returned batch are sorted in ascending order by their index.
func (o *Batch) GetUnassignedBatch(ctx context.Context, maxActiveAttempts, maxTotalAttempts uint8) (*Batch, error) {
db := o.db.WithContext(ctx)
db = db.Where("proving_status not in (?)", []int{int(types.ProvingTaskVerified), int(types.ProvingTaskFailed)})
Expand Down
1 change: 0 additions & 1 deletion coordinator/internal/orm/chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ func (*Chunk) TableName() string {
}

// GetUnassignedChunk retrieves unassigned chunk based on the specified limit.
// The returned chunks are sorted in ascending order by their index.
func (o *Chunk) GetUnassignedChunk(ctx context.Context, height int, maxActiveAttempts, maxTotalAttempts uint8) (*Chunk, error) {
db := o.db.WithContext(ctx)
db = db.Model(&Chunk{})
Expand Down

0 comments on commit 057d5bc

Please sign in to comment.