forked from External/ergo
implement fakelag (#189)
This commit is contained in:
parent
e3e714059c
commit
1bf5e2a7c8
9 changed files with 293 additions and 19 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue