Fix config check sharing service registry with the running instance

This commit is contained in:
世界
2026-09-08 19:01:17 +08:00
parent 89ca622e99
commit 046c46eacb
4 changed files with 7 additions and 3 deletions
+1
View File
@@ -39,6 +39,7 @@ type Instance struct {
func (s *StartedService) CheckConfig(ctx context.Context, configContent string) error {
selectedLocale := locale.FromContext(ctx)
ctx, _ = locale.ContextWithLocale(s.ctx, selectedLocale.Locale)
ctx = service.ExtendContext(ctx)
options, err := parseConfig(ctx, configContent)
if err != nil {
return err