added cache and started fixing data-service
This commit is contained in:
parent
3fc123eca3
commit
d0e8fd9e3f
15 changed files with 1761 additions and 98 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { Pool } from 'pg';
|
||||
import { questdbConfig } from '@stock-bot/config';
|
||||
import { Logger } from '@stock-bot/logger';
|
||||
import { createLogger, Logger } from '@stock-bot/logger';
|
||||
import type {
|
||||
QuestDBClientConfig,
|
||||
QuestDBConnectionOptions,
|
||||
|
|
@ -24,7 +24,7 @@ export class QuestDBClient {
|
|||
private pgPool: Pool | null = null;
|
||||
private readonly config: QuestDBClientConfig;
|
||||
private readonly options: QuestDBConnectionOptions;
|
||||
private readonly logger: Logger;
|
||||
private readonly logger = createLogger('QuestDBClient');
|
||||
private readonly healthMonitor: QuestDBHealthMonitor;
|
||||
private readonly influxWriter: QuestDBInfluxWriter;
|
||||
private readonly schemaManager: QuestDBSchemaManager;
|
||||
|
|
@ -43,7 +43,6 @@ export class QuestDBClient {
|
|||
...options
|
||||
};
|
||||
|
||||
this.logger = new Logger('QuestDBClient');
|
||||
this.healthMonitor = new QuestDBHealthMonitor(this);
|
||||
this.influxWriter = new QuestDBInfluxWriter(this);
|
||||
this.schemaManager = new QuestDBSchemaManager(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue