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) }