diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-05-07 17:14:32 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-05-07 17:14:32 +0100 |
commit | 17d27331a3329c10f1aa38a409f451402fb770aa (patch) | |
tree | 9bb92a727782a0ec4e18b8d128c5225bb208d5c1 /federationsender | |
parent | c8e11dfe53a97ac2e207c893f3f21f1216d86343 (diff) |
Fix 'input to Unique() must be sorted' panic
Diffstat (limited to 'federationsender')
-rw-r--r-- | federationsender/internal/perform.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/federationsender/internal/perform.go b/federationsender/internal/perform.go index 431b2a2d..7c5fa73f 100644 --- a/federationsender/internal/perform.go +++ b/federationsender/internal/perform.go @@ -47,7 +47,7 @@ func (r *FederationSenderInternalAPI) PerformJoin( } // 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 // successfully completes the make-join send-join dance. @@ -159,7 +159,7 @@ func (r *FederationSenderInternalAPI) PerformLeave( response *api.PerformLeaveResponse, ) (err error) { // 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 // successfully completes the make-leave send-leave dance. |