From 962855eb11b66a8704eb625954e28bd771705112 Mon Sep 17 00:00:00 2001 From: alimy Date: Fri, 10 Jun 2022 23:54:01 +0800 Subject: [PATCH] optimize #78 debug info ajust --- internal/dao/post_index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dao/post_index.go b/internal/dao/post_index.go index 430477eb..56a8c63f 100644 --- a/internal/dao/post_index.go +++ b/internal/dao/post_index.go @@ -103,9 +103,9 @@ func (d *dataServant) startIndexPosts() { case action := <-d.indexActionCh: switch action { case idxActCreatePost, idxActUpdatePost, idxActDeletePost, idxActStickPost: - logrus.Debugf("remove index posts by action %s", action) // prevent many update post in least time if len(d.indexPosts) != 0 { + logrus.Debugf("remove index posts by action %s", action) d.indexPosts = nil d.atomicIndex.Store(d.indexPosts) }