0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-01 19:22:53 +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) if(!room_id)
{
out << "- failed to find room_id for " << event_id
<< " from " << event_idx
<< std::endl;
return true; return true;
}
m::fetch::start(room_id, event_id); m::fetch::start(room_id, event_id);
out << room_id << " : "
<< event_id
<< " via " << event_idx
<< std::endl;
++count; ++count;
//TODO: XXX
while(m::fetch::count() > 64)
ctx::sleep(seconds(1));
return true; return true;
}); });
out << "started " << count << std::endl;
return true; return true;
} }