Skip to content

Commit

Permalink
fix(scheduler): Concurrency as int (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
disq committed Jul 5, 2023
1 parent ec4d473 commit 30ba6d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func WithLogger(logger zerolog.Logger) Option {
}
}

func WithConcurrency(concurrency uint64) Option {
func WithConcurrency(concurrency int) Option {
return func(s *Scheduler) {
s.concurrency = concurrency
}
Expand Down Expand Up @@ -158,7 +158,7 @@ type Scheduler struct {
tableSems []*semaphore.Weighted
// Logger to call, this logger is passed to the serve.Serve Client, if not defined Serve will create one instead.
logger zerolog.Logger
concurrency uint64
concurrency int
}

type syncClient struct {
Expand Down Expand Up @@ -387,7 +387,7 @@ func maxDepth(tables schema.Tables) uint64 {

// unparam's suggestion to remove the second parameter is not good advice here.
// nolint:unparam
func max(a, b uint64) uint64 {
func max(a, b int) int {
if a > b {
return a
}
Expand Down

0 comments on commit 30ba6d7

Please sign in to comment.