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