Skip to content

Commit

Permalink
refactor: use explicit int64s for remaining query CLI args
Browse files Browse the repository at this point in the history
  • Loading branch information
danxmoran committed Nov 24, 2020
1 parent 3f32097 commit ba10539
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/influxd/launcher/launcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,9 @@ type Launcher struct {

// Query options.
concurrencyQuota int32
initialMemoryBytesQuotaPerQuery int
memoryBytesQuotaPerQuery int
maxMemoryBytes int
initialMemoryBytesQuotaPerQuery int64
memoryBytesQuotaPerQuery int64
maxMemoryBytes int64
queueSize int32

boltClient *bolt.Client
Expand Down Expand Up @@ -900,9 +900,9 @@ func (m *Launcher) run(ctx context.Context) (err error) {

m.queryController, err = control.New(control.Config{
ConcurrencyQuota: m.concurrencyQuota,
InitialMemoryBytesQuotaPerQuery: int64(m.initialMemoryBytesQuotaPerQuery),
MemoryBytesQuotaPerQuery: int64(m.memoryBytesQuotaPerQuery),
MaxMemoryBytes: int64(m.maxMemoryBytes),
InitialMemoryBytesQuotaPerQuery: m.initialMemoryBytesQuotaPerQuery,
MemoryBytesQuotaPerQuery: m.memoryBytesQuotaPerQuery,
MaxMemoryBytes: m.maxMemoryBytes,
QueueSize: m.queueSize,
Logger: m.log.With(zap.String("service", "storage-reads")),
ExecutorDependencies: []flux.Dependency{deps},
Expand Down

0 comments on commit ba10539

Please sign in to comment.