Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb5e7a8 commit 42dc987Copy full SHA for 42dc987
websites/code2/studygolang/src/logic/searcher.go
@@ -148,6 +148,8 @@ func (self SearcherLogic) IndexingResource(isAll bool) {
148
id := 0
149
for {
150
resourceList = make([]*model.Resource, 0)
151
+ resourceExList = make(map[int]*model.ResourceEx)
152
+
153
err = MasterDB.Where("id>?", id).OrderBy("id ASC").Limit(self.maxRows).Find(&resourceList)
154
if err != nil {
155
logger.Errorln("IndexingResource error:", err)
0 commit comments