dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 0610dc382e697508d95f5fbc3c92fc68f31359a4
parent ef56ad1f119e2bf5479be986b650cfe9dc1cc2ed
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 19 Jan 2023 00:10:06 -0800

fix string formatting

Diffstat:
Mpkg/cache/cache.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go @@ -240,7 +240,7 @@ func (c *Cache[K, V]) replace(k K, v V, d time.Duration) error { func (c *Cache[K, V]) update(k K, v V) error { vv, found := c.items[k] if !found || vv.IsExpired() { - return fmt.Errorf("item %s not found", k) + return fmt.Errorf("item %v not found", k) } vv.value = v c.items[k] = vv