2023-02-26 03:07:45 -08:00
|
|
|
import { loadConfig } from './built/config.js';
|
|
|
|
import { createRedisConnection } from './built/redis.js';
|
2023-02-23 21:09:17 -08:00
|
|
|
|
|
|
|
const config = loadConfig();
|
|
|
|
const redis = createRedisConnection(config);
|
|
|
|
|
|
|
|
redis.on('connect', () => redis.disconnect());
|
|
|
|
redis.on('error', (e) => {
|
2023-02-26 03:07:52 -08:00
|
|
|
throw e;
|
2023-02-23 21:09:17 -08:00
|
|
|
});
|