mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-28 16:08:27 +00:00
Logging
This commit is contained in:
parent
47233e19b8
commit
e4c531b7d1
2 changed files with 3 additions and 2 deletions
|
@ -239,7 +239,7 @@ func (a *KeyInternalAPI) processOtherSignatures(
|
|||
return nil
|
||||
}
|
||||
|
||||
func (a *KeyInternalAPI) crossSigningKeys(
|
||||
func (a *KeyInternalAPI) crossSigningKeysFromDatabase(
|
||||
ctx context.Context, req *api.QueryKeysRequest, res *api.QueryKeysResponse,
|
||||
) {
|
||||
for userID := range req.UserToDevices {
|
||||
|
|
|
@ -227,7 +227,7 @@ func (a *KeyInternalAPI) QueryKeys(ctx context.Context, req *api.QueryKeysReques
|
|||
res.Failures = make(map[string]interface{})
|
||||
|
||||
// get cross-signing keys from the database
|
||||
a.crossSigningKeys(ctx, req, res)
|
||||
a.crossSigningKeysFromDatabase(ctx, req, res)
|
||||
|
||||
// make a map from domain to device keys
|
||||
domainToDeviceKeys := make(map[string]map[string][]string)
|
||||
|
@ -448,6 +448,7 @@ func (a *KeyInternalAPI) queryRemoteKeysOnServer(
|
|||
}
|
||||
}
|
||||
queryKeysResp, err := a.FedClient.QueryKeys(fedCtx, gomatrixserverlib.ServerName(serverName), devKeys)
|
||||
util.GetLogger(fedCtx).Infof("Query keys response: %+v", queryKeysResp)
|
||||
if err == nil {
|
||||
resultCh <- &queryKeysResp
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue