Skip to content

Commit

Permalink
update default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Feb 11, 2025
1 parent e48c1b0 commit ebcffe9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/starsd/cmd/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ type PreferredSetting struct {
var preferredSettings = []PreferredSetting{
{
ViperKey: "consensus.timeout_commit",
Value: "2750ms",
Value: "2500ms",
Set: func(serverCtx *server.Context, key, value string) error {
serverCtx.Viper.Set(key, value)
serverCtx.Config.Consensus.TimeoutCommit = 2750 * time.Millisecond
serverCtx.Config.Consensus.TimeoutCommit = 2500 * time.Millisecond

Check warning on line 24 in cmd/starsd/cmd/settings.go

View check run for this annotation

Codecov / codecov/patch

cmd/starsd/cmd/settings.go#L24

Added line #L24 was not covered by tests
return nil
},
},
{
ViperKey: "consensus.timeout_propose",
Value: "1750ms",
Value: "1700ms",
Set: func(serverCtx *server.Context, key, value string) error {
serverCtx.Viper.Set(key, value)
serverCtx.Config.Consensus.TimeoutPropose = 1750 * time.Millisecond
serverCtx.Config.Consensus.TimeoutPropose = 1500 * time.Millisecond

Check warning on line 33 in cmd/starsd/cmd/settings.go

View check run for this annotation

Codecov / codecov/patch

cmd/starsd/cmd/settings.go#L33

Added line #L33 was not covered by tests
return nil
},
},
Expand Down

0 comments on commit ebcffe9

Please sign in to comment.