From 076ef6a8b365d2642162fb55cec9727007fe7097 Mon Sep 17 00:00:00 2001 From: OldBigBuddha Date: Mon, 18 Nov 2024 15:23:56 +0900 Subject: [PATCH] add comment --- codegen/config/exec.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codegen/config/exec.go b/codegen/config/exec.go index c9a5b6bc291..fe3cb3e7113 100644 --- a/codegen/config/exec.go +++ b/codegen/config/exec.go @@ -21,6 +21,10 @@ type ExecConfig struct { FilenameTemplate string `yaml:"filename_template,omitempty"` // String template with {name} as placeholder for base name. DirName string `yaml:"dir"` + // Maximum number of goroutines in parallel to use when running multiple child resolvers + // Suppressing the number of goroutines generated can reduce memory consumption per request, + // but processing time may increase due to the reduced number of concurrences + // Default: 0 (unlimited) WorkerLimit uint `yaml:"worker_limit"` }