MCPcopy Create free account
hub / github.com/daodst/chat / StoreKeys

Method StoreKeys

federationapi/internal/keys.go:20–30  ·  view source on GitHub ↗
(
	_ context.Context,
	results map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.PublicKeyLookupResult,
)

Source from the content-addressed store, hash-verified

18}
19
20func (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
32func (s *FederationInternalAPI) FetchKeys(
33 _ context.Context,

Callers 1

handleFetcherKeysMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected