| 18 | } |
| 19 | |
| 20 | func (s *FederationInternalAPI) StoreKeys( |
| 21 | _ context.Context, |
| 22 | results map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.PublicKeyLookupResult, |
| 23 | ) error { |
| 24 | // Run in a background context - we don't want to stop this work just |
| 25 | // because the caller gives up waiting. |
| 26 | ctx := context.Background() |
| 27 | |
| 28 | // Store any keys that we were given in our database. |
| 29 | return s.keyRing.KeyDatabase.StoreKeys(ctx, results) |
| 30 | } |
| 31 | |
| 32 | func (s *FederationInternalAPI) FetchKeys( |
| 33 | _ context.Context, |