MCPcopy Create free account
hub / github.com/CommE2E/comm / initFCCache

Function initFCCache

keyserver/src/utils/fc-cache.js:16–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14let fcCache: ?FCCache;
15let getFCNames: ?GetFCNames;
16async function initFCCache() {
17 const neynarSecret = await getNeynarConfig();
18
19 const neynarKey = neynarSecret?.key;
20 if (!neynarKey) {
21 return;
22 }
23 neynarClient = new NeynarClient(neynarKey);
24 const newFCCache = new FCCache(neynarClient);
25 fcCache = newFCCache;
26 getFCNames = <T: ?BaseFCNamesInfo>(users: $ReadOnlyArray<T>): Promise<T[]> =>
27 baseGetFCNames(newFCCache, users);
28}
29
30export { initFCCache, neynarClient, fcCache, getFCNames };

Callers 2

keyserver.jsFile · 0.90
mainFunction · 0.90

Calls 1

getNeynarConfigFunction · 0.90

Tested by

no test coverage detected