Skip to content

Avoid crash when reporting federation status (backport #13701) (backport #13708) #13711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ format(Node, Info, Chs) ->
[Ch || Ch <- Chs,
pget(name, pget(connection_details, Ch))
=:= pget(local_connection, Info)]) of
[Ch] -> [{local_channel, Ch}];
[Ch|_] ->
%% we iterate on responses from many nodes; if the link
%% was restarted on another node, we might get duplicates;
%% we don't really know which one is the most up-to-date
%% so let's just take the first one
[{local_channel, Ch}];
[] -> []
end,
[{node, Node} | format_info(Info)] ++ LocalCh.
Expand Down
Loading