mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 15:04:10 +01:00
modules/federation/get_missing_events: Log dwarning msg for missed event seek.
This commit is contained in:
parent
401e7ee7e8
commit
23a9589fd4
1 changed files with 17 additions and 2 deletions
|
@ -174,10 +174,25 @@ get__missing_events(client &client,
|
|||
queue.pop_front();
|
||||
}};
|
||||
|
||||
bool ok(true);
|
||||
if(!seek(std::nothrow, event, event_id))
|
||||
continue;
|
||||
ok = false;
|
||||
|
||||
if(!visible(event, request.node_id))
|
||||
if(ok && !visible(event, request.node_id))
|
||||
ok = false;
|
||||
|
||||
if(!ok)
|
||||
log::dwarning
|
||||
{
|
||||
m::log, "Failed to divulge missing %s in %s to '%s' queue:%zu limit:%ld",
|
||||
string_view{event_id},
|
||||
string_view{room_id},
|
||||
request.node_id,
|
||||
queue.size(),
|
||||
limit,
|
||||
};
|
||||
|
||||
if(!ok)
|
||||
continue;
|
||||
|
||||
events.append(event);
|
||||
|
|
Loading…
Reference in a new issue