diff --git a/collect.go b/collect.go index a36ed83..f4f13e5 100644 --- a/collect.go +++ b/collect.go @@ -23,7 +23,7 @@ func collectCopyCountLiveAnchors(cxt *WorkerContext) { if ok || (ok == false && err == nil) { var cur *mongo.Cursor - if liveanchor == nil { + if ok == false { cur, err = mdb.C.CountLiveAnchors.Find(context.TODO(), bson.M{"create_at": bson.M{"$gt": "2020-05-30"}}) } else { last := liveanchor.CreateAt