mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/console: Add missing result summary to head fetch cmd.
This commit is contained in:
parent
a5da068d0d
commit
0110e803ef
1 changed files with 16 additions and 1 deletions
|
@ -9241,7 +9241,7 @@ console_cmd__room__head__fetch(opt &out, const string_view &line)
|
|||
|
||||
m::room::head::fetch::opts opts;
|
||||
opts.room_id = room_id;
|
||||
m::room::head::fetch
|
||||
m::room::head::fetch fetch
|
||||
{
|
||||
opts, [&out](const m::event &result)
|
||||
{
|
||||
|
@ -9252,6 +9252,21 @@ console_cmd__room__head__fetch(opt &out, const string_view &line)
|
|||
}
|
||||
};
|
||||
|
||||
out
|
||||
<< std::endl
|
||||
<< "results: " << fetch.heads << std::endl
|
||||
<< "exists: " << fetch.exists << std::endl
|
||||
<< "concur: " << fetch.concur << std::endl
|
||||
<< "unique: " << fetch.head.size() << std::endl
|
||||
<< "servers: " << fetch.respond << std::endl
|
||||
<< "depth ahead: " << fetch.depth[2] << std::endl
|
||||
<< "depth equal: " << fetch.depth[1] << std::endl
|
||||
<< "depth behind: " << fetch.depth[0] << std::endl
|
||||
<< "ots ahead: " << fetch.ots[2] << std::endl
|
||||
<< "ots equal: " << fetch.ots[1] << std::endl
|
||||
<< "ots behind: " << fetch.ots[0] << std::endl
|
||||
;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue