mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::server: Use interface function to query canceled.
This commit is contained in:
parent
b09c0a464a
commit
ba3d82abe7
2 changed files with 11 additions and 3 deletions
|
@ -427,7 +427,7 @@ try
|
|||
if(empty(request.out.head))
|
||||
return "<no head>";
|
||||
|
||||
if(request.tag && request.tag->cancellation)
|
||||
if(request.tag && request.tag->canceled())
|
||||
return "<canceled; out data is gone>";
|
||||
|
||||
const http::request::head head
|
||||
|
@ -476,7 +476,7 @@ try
|
|||
if(empty(request.in.head))
|
||||
return {};
|
||||
|
||||
if(request.tag && request.tag->cancellation)
|
||||
if(request.tag && request.tag->canceled())
|
||||
return {};
|
||||
|
||||
parse::buffer pb{request.in.head};
|
||||
|
@ -509,7 +509,7 @@ try
|
|||
if(empty(request.out.head))
|
||||
return {};
|
||||
|
||||
if(request.tag && request.tag->cancellation)
|
||||
if(request.tag && request.tag->canceled())
|
||||
return {};
|
||||
|
||||
parse::buffer pb{request.out.head};
|
||||
|
|
|
@ -5003,21 +5003,29 @@ try
|
|||
|
||||
if(request.tag)
|
||||
out << std::setw(4) << uint(request.tag->state.status) << " ";
|
||||
else if(!request.tag)
|
||||
out << std::setw(4) << "----" << " ";
|
||||
else
|
||||
out << std::setw(4) << "CNCL" << " ";
|
||||
|
||||
if(request.tag && request.tag->committed())
|
||||
out << std::setw(4) << "PIPE" << " ";
|
||||
else if(!request.tag)
|
||||
out << std::setw(4) << "----" << " ";
|
||||
else
|
||||
out << std::setw(4) << " " << " ";
|
||||
|
||||
if(request.tag && request.tag->abandoned())
|
||||
out << std::setw(4) << "LEFT" << " ";
|
||||
else if(!request.tag)
|
||||
out << std::setw(4) << "----" << " ";
|
||||
else
|
||||
out << std::setw(4) << " " << " ";
|
||||
|
||||
if(request.tag && request.tag->canceled())
|
||||
out << std::setw(4) << "CNCL" << " ";
|
||||
else if(!request.tag)
|
||||
out << std::setw(4) << "----" << " ";
|
||||
else
|
||||
out << std::setw(4) << " " << " ";
|
||||
|
||||
|
|
Loading…
Reference in a new issue