mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 06:53:58 +01:00
ircd:Ⓜ️:init::backfill: Add interruption checks for clean breaks.
This commit is contained in:
parent
c7b0e9a1b5
commit
3e4918062d
1 changed files with 4 additions and 3 deletions
|
@ -122,7 +122,7 @@ try
|
||||||
|
|
||||||
handle_room(room_id);
|
handle_room(room_id);
|
||||||
++count;
|
++count;
|
||||||
return true;
|
return !ctx::interruption_requested();
|
||||||
});
|
});
|
||||||
|
|
||||||
log::info
|
log::info
|
||||||
|
@ -242,12 +242,13 @@ try
|
||||||
}
|
}
|
||||||
|
|
||||||
++evaluated;
|
++evaluated;
|
||||||
return true;
|
return !ctx::interruption_requested();
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return !ctx::interruption_requested();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ctx::interruption_point();
|
||||||
log::info
|
log::info
|
||||||
{
|
{
|
||||||
log, "acquired %s remote head; servers:%zu online:%zu"
|
log, "acquired %s remote head; servers:%zu online:%zu"
|
||||||
|
|
Loading…
Reference in a new issue