Remove the incorrect custom MarshalJSON method to avoid infinite recursion (#5624)
This commit is contained in:
7
pkg/simple/client/cache/cache.go
vendored
7
pkg/simple/client/cache/cache.go
vendored
@@ -17,7 +17,6 @@ limitations under the License.
|
|||||||
package cache
|
package cache
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -54,12 +53,6 @@ type Interface interface {
|
|||||||
// For InMemoryCache, options key can be "cleanupperiod"
|
// For InMemoryCache, options key can be "cleanupperiod"
|
||||||
type DynamicOptions map[string]interface{}
|
type DynamicOptions map[string]interface{}
|
||||||
|
|
||||||
func (o DynamicOptions) MarshalJSON() ([]byte, error) {
|
|
||||||
|
|
||||||
data, err := json.Marshal(o)
|
|
||||||
return data, err
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterCacheFactory(factory CacheFactory) {
|
func RegisterCacheFactory(factory CacheFactory) {
|
||||||
cacheFactories[factory.Type()] = factory
|
cacheFactories[factory.Type()] = factory
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user