(makeClient: () => Client)
| 108 | Layer.effect(RedisClient, makeRedisClient(makeRedis(storageUrl))) |
| 109 | |
| 110 | function createClient(makeClient: () => Client) { |
| 111 | const client = makeClient() |
| 112 | client.on("error", (error) => { |
| 113 | console.error(error) |
| 114 | }) |
| 115 | return client |
| 116 | } |
| 117 | |
| 118 | function makeRedis(storageUrl: string) { |
| 119 | const url = new URL(storageUrl) |
no test coverage detected
searching dependent graphs…