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:
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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue