From 9f31f3aa8ac4f6bfc8390c9ae63b2a387b414c88 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 25 Jul 2021 00:03:58 +0800 Subject: Add an abstract json layout to make it's easier to change json library (#16528) * Add an abstract json layout to make it's easier to change json library * Fix import * Fix import sequence * Fix blank lines * Fix blank lines --- modules/queue/manager.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/queue/manager.go') diff --git a/modules/queue/manager.go b/modules/queue/manager.go index a6d48575ab..a88933191a 100644 --- a/modules/queue/manager.go +++ b/modules/queue/manager.go @@ -12,8 +12,8 @@ import ( "sync" "time" + "code.gitea.io/gitea/modules/json" "code.gitea.io/gitea/modules/log" - jsoniter "github.com/json-iterator/go" ) var manager *Manager @@ -110,7 +110,6 @@ func (m *Manager) Add(managed interface{}, configuration, exemplar interface{}) int64 { - json := jsoniter.ConfigCompatibleWithStandardLibrary cfg, _ := json.Marshal(configuration) mq := &ManagedQueue{ Type: t, -- cgit v1.2.3