From 9bed5bf87274536c2f931662d61b59270abb97f4 Mon Sep 17 00:00:00 2001 From: yusing Date: Tue, 11 Feb 2025 06:27:27 +0800 Subject: [PATCH] fix agent json marshal --- agent/pkg/agent/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/pkg/agent/config.go b/agent/pkg/agent/config.go index fc4da26..f5d9e7d 100644 --- a/agent/pkg/agent/config.go +++ b/agent/pkg/agent/config.go @@ -192,7 +192,7 @@ func (cfg *AgentConfig) String() string { return "agent@" + cfg.Name() } -func (cfg *AgentConfig) MarshalText() ([]byte, error) { +func (cfg *AgentConfig) MarshalJSON() ([]byte, error) { return json.Marshal(map[string]string{ "name": cfg.Name(), "addr": cfg.Addr,