From 1837d652a0d3d17da785f2a12487ef7746b30bcb Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 24 Feb 2020 13:54:12 +0800 Subject: [PATCH] Improve fmt --- caches/cache_lru.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caches/cache_lru.go b/caches/cache_lru.go index fe9c7c53..6b45ac94 100644 --- a/caches/cache_lru.go +++ b/caches/cache_lru.go @@ -266,11 +266,11 @@ type sqlNode struct { } func genSQLKey(sql string, args interface{}) string { - return fmt.Sprintf("%v-%v", sql, args) + return fmt.Sprintf("%s-%v", sql, args) } func genID(prefix string, id string) string { - return fmt.Sprintf("%v-%v", prefix, id) + return fmt.Sprintf("%s-%s", prefix, id) } func newIDNode(tbName string, id string) *idNode {