aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/config
diff options
context:
space:
mode:
Diffstat (limited to 'simulation/config')
-rw-r--r--simulation/config/config.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go
index cb67411..fe91881 100644
--- a/simulation/config/config.go
+++ b/simulation/config/config.go
@@ -59,11 +59,17 @@ type Networking struct {
LossRateValue float64
}
+// Scheduler Settings.
+type Scheduler struct {
+ WorkerNum int
+}
+
// Config represents the configuration for simulation.
type Config struct {
Title string
Validator Validator
Networking Networking
+ Scheduler Scheduler
}
// GenerateDefault generates a default configuration file.
@@ -93,6 +99,9 @@ func GenerateDefault(path string) error {
Sigma: 10,
LossRateValue: 0,
},
+ Scheduler: Scheduler{
+ WorkerNum: 2,
+ },
}
if err := toml.NewEncoder(f).Encode(&config); err != nil {