Skip to content

Commit 9066afd

Browse files
committed
Remove unnecessary local var and update show config prompt
Signed-off-by: Qifan Deng <[email protected]>
1 parent 9c9f37d commit 9066afd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/llm-d-inference-sim/simulator.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -720,11 +720,10 @@ func (s *VllmSimulator) showConfig(tgtLgr logr.Logger) error {
720720
err := fmt.Errorf("target logger is nil, cannot show configuration")
721721
return err
722722
}
723-
config := s.config
724-
cfgJSON, err := json.MarshalIndent(config, "", " ")
723+
cfgJSON, err := json.MarshalIndent(s.config, "", " ")
725724
if err != nil {
726725
return fmt.Errorf("failed to marshal configuration to JSON: %w", err)
727726
}
728-
tgtLgr.Info("Final simulator configuration:", "config", string(cfgJSON))
727+
tgtLgr.Info("Configuration:", "", string(cfgJSON))
729728
return nil
730729
}

0 commit comments

Comments
 (0)