From be97ce6766a57f301cf65e5dcc30465b4805f0e5 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Fri, 7 Feb 2025 10:14:40 +0700 Subject: [PATCH] chore(json): merge config - as its not usable Signed-off-by: Dwi Siswanto --- pkg/utils/json/config.go | 6 ------ pkg/utils/json/json.go | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 pkg/utils/json/config.go diff --git a/pkg/utils/json/config.go b/pkg/utils/json/config.go deleted file mode 100644 index 85e45f3331..0000000000 --- a/pkg/utils/json/config.go +++ /dev/null @@ -1,6 +0,0 @@ -package json - -import "github.com/bytedance/sonic" - -// Config is a configuration for the JSON package. -type Config = sonic.Config diff --git a/pkg/utils/json/json.go b/pkg/utils/json/json.go index 08906d80dd..14d56abba7 100644 --- a/pkg/utils/json/json.go +++ b/pkg/utils/json/json.go @@ -24,6 +24,6 @@ type Encoder = sonic.Encoder type Decoder = sonic.Decoder // SetConfig sets the configuration for the JSON package. -func SetConfig(config *Config) { +func SetConfig(config *sonic.Config) { api = config.Froze() }