mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-03-01 06:14:28 -06:00
Store fetched keys
This commit is contained in:
parent
5408af1baf
commit
0e1a9713f1
|
@ -66,6 +66,9 @@ func (s *ServerKeyAPI) FetchKeys(
|
|||
results[req] = res
|
||||
delete(requests, req)
|
||||
}
|
||||
if err = s.OurKeyRing.KeyDatabase.StoreKeys(ctx, fetcherResults); err != nil {
|
||||
return nil, fmt.Errorf("server key API failed to store retrieved keys: %w", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
// If we failed to fetch any keys then we should report an error.
|
||||
|
|
Loading…
Reference in a new issue