From 43748616c820be9fb84097b5c8b957b499cdecd3 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 12 Jul 2023 17:04:46 +0800 Subject: [PATCH] fix: Printf format %s reads arg #2, but call has only 1 args --- common/xcache/rediskey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xcache/rediskey.go b/common/xcache/rediskey.go index 390529aa..d987c643 100644 --- a/common/xcache/rediskey.go +++ b/common/xcache/rediskey.go @@ -23,7 +23,7 @@ func (x *xRedisVal) LockKeyUserPhone(phone string, phoneCode string) string { } func (x *xRedisVal) LockKeyUserEmail(email string) string { - return fmt.Sprintf("user:l:email:%s:%s", email) + return fmt.Sprintf("user:l:email:%s", email) } func (x *xRedisVal) HashKeyConvKv(convId string, convTyp int32) string {