From a13fad6dde2121a51293dade40d00d24dd1ff813 Mon Sep 17 00:00:00 2001 From: u Date: Tue, 24 Aug 2021 15:33:53 +0800 Subject: [PATCH] fix --- core.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/core.go b/core.go index 3eb5dc8..88103c1 100644 --- a/core.go +++ b/core.go @@ -129,18 +129,18 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool { tfdate := t.Format("2006-01-02") mainKey := fmt.Sprintf("[%s][%s]", tfdate, strings.Join(ta.TimesOnDay, "|")) - value, ok := isInTimeOfDayCacheBool.Load(mainKey) - if ok { - ret, ok := value.(int) - if ok { - if ret == 1 { - return true - } - if ret == 2 { - return false - } - } - } + // value, ok := isInTimeOfDayCacheBool.Load(mainKey) + // if ok { + // ret, ok := value.(int) + // if ok { + // if ret == 1 { + // return true + // } + // if ret == 2 { + // return false + // } + // } + // } parseInLocationCache := map[string]time.Time{} var err error