Rename files

This commit is contained in:
2023-06-21 16:48:35 +01:00
parent 0cd43a731e
commit 7ec602cc16
51 changed files with 98 additions and 98 deletions

View File

@ -0,0 +1,22 @@
import { db, RelayMetrics } from ".";
import { FeedCache } from "@snort/shared";
export class RelayMetricCache extends FeedCache<RelayMetrics> {
constructor() {
super("RelayMetrics", db.relayMetrics);
}
key(of: RelayMetrics): string {
return of.addr;
}
override async preload(): Promise<void> {
await super.preload();
// load everything
await this.buffer([...this.onTable]);
}
takeSnapshot(): Array<RelayMetrics> {
return [...this.cache.values()];
}
}