aboutsummaryrefslogtreecommitdiff
path: root/federationapi
diff options
context:
space:
mode:
Diffstat (limited to 'federationapi')
-rw-r--r--federationapi/routing/keys.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/federationapi/routing/keys.go b/federationapi/routing/keys.go
index a6b35a5b..d73161e9 100644
--- a/federationapi/routing/keys.go
+++ b/federationapi/routing/keys.go
@@ -197,16 +197,10 @@ func NotaryKeys(
return util.ErrorResponse(err)
}
} else {
- kids := make([]gomatrixserverlib.KeyID, len(kidToCriteria))
- i := 0
- for kid := range kidToCriteria {
- kids[i] = kid
- i++
- }
var resp federationSenderAPI.QueryServerKeysResponse
err := fsAPI.QueryServerKeys(httpReq.Context(), &federationSenderAPI.QueryServerKeysRequest{
- ServerName: serverName,
- OptionalKeyIDs: kids,
+ ServerName: serverName,
+ KeyIDToCriteria: kidToCriteria,
}, &resp)
if err != nil {
return util.ErrorResponse(err)