1
0
Fork 0
forked from External/ergo

implement fakelag (#189)

This commit is contained in:
Shivaram Lingamneni 2018-03-22 11:04:21 -04:00
parent e3e714059c
commit 1bf5e2a7c8
9 changed files with 293 additions and 19 deletions

View file

@ -189,6 +189,13 @@ type StackImpactConfig struct {
AppName string `yaml:"app-name"`
}
type FakelagConfig struct {
Enabled bool
Window time.Duration
BurstLimit uint `yaml:"burst-limit"`
MessagesPerWindow uint `yaml:"messages-per-window"`
}
// Config defines the overall configuration.
type Config struct {
Network struct {
@ -255,6 +262,8 @@ type Config struct {
LineLen LineLenConfig `yaml:"linelen"`
}
Fakelag FakelagConfig
Filename string
}