summaryrefslogtreecommitdiffstats
path: root/modules/indexer/issues/queue_disk.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/indexer/issues/queue_disk.go')
-rw-r--r--modules/indexer/issues/queue_disk.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/indexer/issues/queue_disk.go b/modules/indexer/issues/queue_disk.go
index cf9e6aee22..e5ac2a7981 100644
--- a/modules/indexer/issues/queue_disk.go
+++ b/modules/indexer/issues/queue_disk.go
@@ -44,7 +44,7 @@ func (l *LevelQueue) Run() error {
for {
i++
if len(datas) > l.batchNumber || (len(datas) > 0 && i > 3) {
- l.indexer.Index(datas)
+ _ = l.indexer.Index(datas)
datas = make([]*IndexerData, 0, l.batchNumber)
i = 0
continue
@@ -59,7 +59,7 @@ func (l *LevelQueue) Run() error {
continue
}
- if len(bs) <= 0 {
+ if len(bs) == 0 {
time.Sleep(time.Millisecond * 100)
continue
}