Skip to content

Commit

Permalink
Merge pull request #142 from alimy/main
Browse files Browse the repository at this point in the history
fixed get index post list error when not user cache index service
  • Loading branch information
alimy committed Jun 25, 2022
2 parents 7c2ad0b + e06abfb commit db41020
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/dao/dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func NewDataService() core.DataService {
ds.getIndexPostsFunc = ds.getIndexPosts
ds.cacheIndex = newBigCacheIndexServant(ds.getIndexPosts)
} else {
ds.getIndexPostsFunc = ds.getIndexPosts
ds.useCacheIndex = false
}

Expand Down

0 comments on commit db41020

Please sign in to comment.