0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

modules/federation/get_missing_events: Log dwarning msg for missed event seek.

This commit is contained in:
Jason Volk 2020-12-08 21:57:47 -08:00
parent 401e7ee7e8
commit 23a9589fd4

View file

@ -174,10 +174,25 @@ get__missing_events(client &client,
queue.pop_front(); queue.pop_front();
}}; }};
bool ok(true);
if(!seek(std::nothrow, event, event_id)) 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; continue;
events.append(event); events.append(event);