Remove wip code

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-08-17 16:43:05 +02:00
committed by Fredrik Adelöw
parent b9f66a0d21
commit 43ffcc4647
@@ -84,39 +84,6 @@ class Connection implements EntityProviderConnection {
}
}
/*
export class Metrics {
private readonly processedEntities = new Counter({
name: 'processed_entities',
help: 'Amount of entities processed',
});
private readonly processingDuration = new Histogram({
name: 'processing_duration',
help: 'Processing duration',
});
private readonly processingQueueDelay = new Histogram({
name: 'processing_queue_delay',
help: 'The amount of delay between being scheduled for processing, and the start of actually being processed',
});
async markProcess(item: RefreshStateItem, inner: () => Promise<void>) {
this.processedEntities.add(1);
this.processingQueueDelay.add(
DateTime.fromSQL(item.nextUpdateAt, { zone: 'UTC' })
.diffNow()
.as('seconds'),
);
const endTimer = this.processingDuration.startTimer();
try {
await inner();
} finally {
endTimer();
}
}
}
*/
export class DefaultCatalogProcessingEngine implements CatalogProcessingEngine {
private stopFunc?: () => void;
private readonly metrics = {