feat(shutdown): add cur loop break
This commit is contained in:
@@ -43,7 +43,7 @@ func collectCopyCountLiveAnchors(cxt *WorkerContext) {
|
||||
continue
|
||||
}
|
||||
|
||||
for cur.Next(context.TODO()) {
|
||||
for cur.Next(context.TODO()) && !ps.IsClose() {
|
||||
// la := &database.LiveAnchorsCountPoint{}
|
||||
la := &database.LiveAnchorsCountPointObjectID{}
|
||||
err = cur.Decode(la)
|
||||
|
||||
Reference in New Issue
Block a user