Skip to content

Commit 20169f5

Browse files
yangxb2010000MandssS
authored andcommitted
如果达到超时时间就退出循环
Signed-off-by: yangxiaobing <[email protected]>
1 parent 3a73711 commit 20169f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

exec/redis/redis_cache_hot_key.go

+2
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ func (cbe *CacheHotKeyExecutor) start(ctx context.Context, addrStr string, passw
214214
for {
215215
if time.Now().Before(endTime) {
216216
HotKeyFunc(ctx, cli, keyStr, valueForCache)
217+
} else {
218+
break
217219
}
218220
}
219221

0 commit comments

Comments
 (0)