Skip to content

Commit

Permalink
add default number of workers
Browse files Browse the repository at this point in the history
  • Loading branch information
NazariiDenha committed Mar 17, 2023
1 parent 4004192 commit fdd8fcb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions coordinator/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import (
db_config "scroll-tech/database"
)

const (
defaultNumberOfVerifierWorkers = 10
)

// RollerManagerConfig loads sequencer configuration items.
type RollerManagerConfig struct {
CompressionLevel int `json:"compression_level,omitempty"`
Expand Down Expand Up @@ -67,5 +71,9 @@ func NewConfig(file string) (*Config, error) {
}
cfg.RollerManagerConfig.OrderSession = order

if cfg.RollerManagerConfig.MaxVerifierWorkers == 0 {
cfg.RollerManagerConfig.MaxVerifierWorkers = defaultNumberOfVerifierWorkers
}

return cfg, nil
}

0 comments on commit fdd8fcb

Please sign in to comment.