mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
ircd:Ⓜ️:init::backfill: Fix non-volatile reference to result involving extern conf item.
This commit is contained in:
parent
a6747ad3a0
commit
3e1be63a49
1 changed files with 9 additions and 4 deletions
|
@ -378,10 +378,15 @@ try
|
|||
m::depth(std::nothrow, room)
|
||||
};
|
||||
|
||||
const int64_t &min_depth
|
||||
{
|
||||
std::max(room_depth - ssize_t(m::room::events::viewport_size) * 2, 0L)
|
||||
};
|
||||
const ssize_t &viewport_size
|
||||
{
|
||||
m::room::events::viewport_size
|
||||
};
|
||||
|
||||
const int64_t min_depth
|
||||
{
|
||||
std::max(room_depth - viewport_size * 2, 0L)
|
||||
};
|
||||
|
||||
ssize_t attempted(0);
|
||||
std::set<std::string, std::less<>> fail;
|
||||
|
|
Loading…
Reference in a new issue