This commit is contained in:
eson 2020-12-09 18:12:39 +08:00
parent 685f934fd7
commit c4e6ac8fb4

View File

@ -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