From ad9e4a5d63b176dd9c4aab70fb612e9c6ab3a5b0 Mon Sep 17 00:00:00 2001 From: u Date: Tue, 24 Aug 2021 15:48:02 +0800 Subject: [PATCH] fix --- core.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core.go b/core.go index e92d5c9..0456e1c 100644 --- a/core.go +++ b/core.go @@ -133,16 +133,16 @@ func isInTimeOfDay(t time.Time, ta TimeArrow) bool { tmp, err := json.Marshal(ta.TimesOnDay) mainKey := fmt.Sprintf("[%s][%s]", tfdate, string(tmp)) - value, ok := isInTimeOfDayCacheBool.Load(mainKey) - if ok && err == nil { - ret := value.(int) - if ret == 3 { - // return true - } - if ret == 4 { - return false - } - } + // value, ok := isInTimeOfDayCacheBool.Load(mainKey) + // if ok && err == nil { + // ret := value.(int) + // if ret == 3 { + // // return true + // } + // if ret == 4 { + // return false + // } + // } parseInLocationCache := map[string]time.Time{} for k := range ta.TimesOnDay {