()
| 14 | let fcCache: ?FCCache; |
| 15 | let getFCNames: ?GetFCNames; |
| 16 | async 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 | |
| 30 | export { initFCCache, neynarClient, fcCache, getFCNames }; |
no test coverage detected