rebase and remove replayDelay

This commit is contained in:
eddc005
2024-05-06 23:04:54 +01:00
parent 94387450cf
commit f01b79e625
2 changed files with 10 additions and 13 deletions

View File

@@ -137,7 +137,6 @@ func initConfig() {
}
viper.SetDefault("replay.realtime", true)
viper.SetDefault("replay.replayDelay", 10 * time.Millisecond)
}
func initLogger() {
@@ -185,7 +184,6 @@ type cliConfigIO struct {
type cliConfigReplay struct {
Realtime bool `mapstructure:"realtime"`
ReplayDelay time.Duration `mapstructure:"replayDelay"`
}
type cliConfigWorkers struct {
@@ -216,7 +214,6 @@ func (c *cliConfig) fillIO(config *engine.Config) error {
ioImpl, err = io.NewPcapPacketIO(io.PcapPacketIOConfig{
PcapFile: pcapFile,
Realtime: c.Replay.Realtime,
ReplayDelay: c.Replay.ReplayDelay,
})
} else {
// Setup IO for nfqueue