mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
modules/console: Make event horizon flush cmd practical for now.
This commit is contained in:
parent
f5df386e1c
commit
2992a1ae34
1 changed files with 5 additions and 12 deletions
|
@ -6612,25 +6612,18 @@ console_cmd__event__horizon__flush(opt &out, const string_view &line)
|
|||
};
|
||||
|
||||
if(!room_id)
|
||||
{
|
||||
out << "- failed to find room_id for " << event_id
|
||||
<< " from " << event_idx
|
||||
<< std::endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
m::fetch::start(room_id, event_id);
|
||||
out << room_id << " : "
|
||||
<< event_id
|
||||
<< " via " << event_idx
|
||||
<< std::endl;
|
||||
|
||||
++count;
|
||||
|
||||
//TODO: XXX
|
||||
while(m::fetch::count() > 64)
|
||||
ctx::sleep(seconds(1));
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
out << "started " << count << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue