Skip to content

Commit

Permalink
remove half batch
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Feb 26, 2025
1 parent 2dbdf5b commit b1c7dc5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cmd/gateway/zcn/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ func IntiBatchUploadWorkers(ctx context.Context, alloc *sdk.Allocation, waitTime
continue
}
if len(batchUploadChan) == 0 {
if len(opRequest) > maxOperations/2 {
log.Println("processing half batch")
workerChan <- opRequest
opRequest = make([]sdk.OperationRequest, 0, 5)
iterations = 0
continue
}
// wait for more operations
log.Println("waiting for more operations: ", len(opRequest))
iterations++
Expand Down

0 comments on commit b1c7dc5

Please sign in to comment.