(identity: Identity["Service"])
| 169 | |
| 170 | const identities = new Map<string, Identity["Service"]>() |
| 171 | const ensureIdentity = (identity: Identity["Service"]) => { |
| 172 | let entry = identities.get(identity.publicKey) |
| 173 | if (!entry) { |
| 174 | entry = identity |
| 175 | identities.set(identity.publicKey, entry) |
| 176 | } |
| 177 | return entry |
| 178 | } |
| 179 | |
| 180 | const authCache = yield* Cache.make({ |
| 181 | lookup: Effect.fnUntraced(function*(publicKey: string) { |
no test coverage detected