Skip to content

Commit

Permalink
bad refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Nov 14, 2024
1 parent 49aa140 commit b872d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shadowbox/server/shared_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {Clock} from '../infrastructure/clock';
import * as follow_redirects from '../infrastructure/follow_redirects';
import {JsonConfig} from '../infrastructure/json_config';
import * as logging from '../infrastructure/logging';
import {ApiPrometheusClient, QueryResultData} from '../infrastructure/prometheus_scraper';
import {PrometheusClient, QueryResultData} from '../infrastructure/prometheus_scraper';
import * as version from './version';
import {AccessKeyConfigJson} from './server_access_key';

Expand Down Expand Up @@ -82,7 +82,7 @@ export interface UsageMetrics {
export class PrometheusUsageMetrics implements UsageMetrics {
private resetTimeMs: number = Date.now();

constructor(private prometheusClient: ApiPrometheusClient) {}
constructor(private prometheusClient: PrometheusClient) {}

async getReportedUsage(): Promise<ReportedUsage[]> {
const timeDeltaSecs = Math.round((Date.now() - this.resetTimeMs) / 1000);
Expand Down

0 comments on commit b872d59

Please sign in to comment.