mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +00:00
Fix 'input to Unique() must be sorted' panic
This commit is contained in:
parent
c8e11dfe53
commit
17d27331a3
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ func (r *FederationSenderInternalAPI) PerformJoin(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deduplicate the server names we were provided.
|
// Deduplicate the server names we were provided.
|
||||||
util.Unique(request.ServerNames)
|
util.SortAndUnique(request.ServerNames)
|
||||||
|
|
||||||
// Try each server that we were provided until we land on one that
|
// Try each server that we were provided until we land on one that
|
||||||
// successfully completes the make-join send-join dance.
|
// successfully completes the make-join send-join dance.
|
||||||
|
@ -159,7 +159,7 @@ func (r *FederationSenderInternalAPI) PerformLeave(
|
||||||
response *api.PerformLeaveResponse,
|
response *api.PerformLeaveResponse,
|
||||||
) (err error) {
|
) (err error) {
|
||||||
// Deduplicate the server names we were provided.
|
// Deduplicate the server names we were provided.
|
||||||
util.Unique(request.ServerNames)
|
util.SortAndUnique(request.ServerNames)
|
||||||
|
|
||||||
// Try each server that we were provided until we land on one that
|
// Try each server that we were provided until we land on one that
|
||||||
// successfully completes the make-leave send-leave dance.
|
// successfully completes the make-leave send-leave dance.
|
||||||
|
|
Loading…
Reference in a new issue