Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: piguagua <[email protected]>
  • Loading branch information
piguagua committed Jan 15, 2025
1 parent e4a0b8e commit 33e8960
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/catalog/config/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ func GetTemplateFormatFromExt(filePath string) TemplateFormat {
}
}

// GetSupportedTemplateFileExtensions returns all supported template file extensions
// GetSupportTemplateFileExtensions returns all supported template file extensions
func GetSupportTemplateFileExtensions() []string {
return []string{extensions.YAML, extensions.JSON}
}

// isTemplate is a callback function used by goflags to decide if given file should be read
// IsTemplate is a callback function used by goflags to decide if given file should be read
// if it is not a nuclei-template file only then file is read
func IsTemplate(filename string) bool {
if stringsutil.ContainsAny(filename, knownConfigFiles...) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/core/executors.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (e *Engine) executeAllSelfContained(ctx context.Context, alltemplates []*te
}
}

// executeTemplateWithTarget executes a given template on x targets (with a internal targetpool(i.e concurrency))
// executeTemplateWithTargets executes a given template on x targets (with a internal targetpool(i.e concurrency))
func (e *Engine) executeTemplateWithTargets(ctx context.Context, template *templates.Template, target provider.InputProvider, results *atomic.Bool) {
// this is target pool i.e max target to execute
wg := e.workPool.InputPool(template.Type())
Expand Down

0 comments on commit 33e8960

Please sign in to comment.