Commit bf3608e3 authored by vicotor's avatar vicotor

update for syncer

parent 3fb16bbc
...@@ -66,8 +66,9 @@ func (s *Idx) Idx(page []UserTask) (bool, *list.List) { ...@@ -66,8 +66,9 @@ func (s *Idx) Idx(page []UserTask) (bool, *list.List) {
if !match { if !match {
newItems.PushBack(v) newItems.PushBack(v)
} else { } else {
// 这打开break是一个加快比较的方法,但是有些api返回的数据中包含置顶的几个用户,会导致误判,所以先开放为全部比较.
// stop, all new items has added to newItems. // stop, all new items has added to newItems.
break //break
} }
} }
if newItems.Len() < len(page) { if newItems.Len() < len(page) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment