0
0
Fork 0
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:
Jason Volk 2019-06-04 18:50:54 -07:00
parent f5df386e1c
commit 2992a1ae34

View file

@ -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;
}