Skip to content

Commit 507f301

Browse files
committed
asim: export DefaultStartTime
This commit exports the simulator’s default start time, which will be used in future commits to compare against scheduled event timestamps in the scheduler package, ensuring timestamp is printed only when not at the start time.
1 parent 50882df commit 507f301

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/kv/kvserver/asim/config/settings.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ const (
3333
)
3434

3535
var (
36-
// defaultStartTime is used as the default beginning time for simulation
36+
// DefaultStartTime is used as the default beginning time for simulation
3737
// runs. It isn't necessarily meaningful other than for logging and having
3838
// "some" start time for components taking a time.Time.
39-
defaultStartTime = time.Date(2022, 03, 21, 11, 0, 0, 0, time.UTC)
39+
DefaultStartTime = time.Date(2022, 03, 21, 11, 0, 0, 0, time.UTC)
4040
)
4141

4242
// SimulationSettings controls
@@ -116,7 +116,7 @@ type SimulationSettings struct {
116116
// DefaultSimulationSettings returns a set of default settings for simulation.
117117
func DefaultSimulationSettings() *SimulationSettings {
118118
return &SimulationSettings{
119-
StartTime: defaultStartTime,
119+
StartTime: DefaultStartTime,
120120
TickInterval: defaultTickInteval,
121121
MetricsInterval: defaultMetricsInterval,
122122
Seed: defaultSeed,

0 commit comments

Comments
 (0)