From 18ce4fa9fd286b1c58cb556bdf410991bb1ded2a Mon Sep 17 00:00:00 2001 From: Yusuke Kato Date: Mon, 11 Nov 2024 16:11:57 +0900 Subject: [PATCH] refactor (#143) Signed-off-by: kpango --- gache_benchmark_test.go | 1 + go.mod | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gache_benchmark_test.go b/gache_benchmark_test.go index 4520937..663d33e 100755 --- a/gache_benchmark_test.go +++ b/gache_benchmark_test.go @@ -35,6 +35,7 @@ func (m *DefaultMap) Get(key interface{}) (interface{}, bool) { func (m *DefaultMap) Set(key, val interface{}) { m.mu.Lock() defer m.mu.Unlock() + m.data[key] = val } var ( diff --git a/go.mod b/go.mod index e224d6e..688a21d 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/kpango/gache/v2 -go 1.23.1 +go 1.23.3 require ( github.com/kpango/fastime v1.1.9