Skip to content

Commit

Permalink
removed debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice3man543 committed Dec 16, 2024
1 parent ab2ce86 commit 0c4645b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/core/workpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,18 @@ func (w *WorkPool) InputPool(templateType types.ProtocolType) *syncutil.Adaptive
}

func (w *WorkPool) RefreshWithConfig(config WorkPoolConfig) {
changedValues := make(map[string]int)
if w.config.TypeConcurrency != config.TypeConcurrency {
w.config.TypeConcurrency = config.TypeConcurrency
changedValues["TypeConcurrency"] = config.TypeConcurrency
}
if w.config.HeadlessTypeConcurrency != config.HeadlessTypeConcurrency {
w.config.HeadlessTypeConcurrency = config.HeadlessTypeConcurrency
}
if w.config.InputConcurrency != config.InputConcurrency {
w.config.InputConcurrency = config.InputConcurrency
changedValues["InputConcurrency"] = config.InputConcurrency
}
if w.config.HeadlessInputConcurrency != config.HeadlessInputConcurrency {
w.config.HeadlessInputConcurrency = config.HeadlessInputConcurrency
}
if len(changedValues) > 0 {
gologger.Info().Msgf("Workpool configuration changed: %v", changedValues)
}
w.Refresh(context.Background())
}

Expand Down

0 comments on commit 0c4645b

Please sign in to comment.