Skip to content

Commit 5ef88af

Browse files
committed
fix: linter issue
1 parent f0e52a8 commit 5ef88af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scheduler/scheduler.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@ func shardTableClients(tableClients []tableClient, shard *shard) []tableClient {
310310
num := int(shard.num)
311311
total := int(shard.total)
312312

313-
var chunkSize int
314-
chunkSize = int(math.Ceil(float64(len(tableClients)) / float64(total)))
313+
chunkSize := int(math.Ceil(float64(len(tableClients)) / float64(total)))
315314

316315
chunks := lo.Chunk(tableClients, chunkSize)
317316
if num > len(chunks) {

0 commit comments

Comments
 (0)