From c4e6ac8fb4b9477df58320d3f9b813f6e9a029cf Mon Sep 17 00:00:00 2001 From: eson Date: Wed, 9 Dec 2020 18:12:39 +0800 Subject: [PATCH] bug fix --- collect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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