chore(#1): apply Prettier formatting to all source and test files
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { TelemetryConfig, ResolvedConfig, resolveConfig } from './config.js';
|
||||
import { EventQueue } from './queue.js';
|
||||
import { BatchSubmitter } from './submitter.js';
|
||||
import { PredictionCache } from './prediction-cache.js';
|
||||
import { EventBuilder } from './event-builder.js';
|
||||
import { TaskCompletionEvent } from './types/events.js';
|
||||
import { PredictionQuery, PredictionResponse } from './types/predictions.js';
|
||||
import { BatchPredictionResponse } from './types/common.js';
|
||||
import { TelemetryConfig, ResolvedConfig, resolveConfig } from "./config.js";
|
||||
import { EventQueue } from "./queue.js";
|
||||
import { BatchSubmitter } from "./submitter.js";
|
||||
import { PredictionCache } from "./prediction-cache.js";
|
||||
import { EventBuilder } from "./event-builder.js";
|
||||
import { TaskCompletionEvent } from "./types/events.js";
|
||||
import { PredictionQuery, PredictionResponse } from "./types/predictions.js";
|
||||
import { BatchPredictionResponse } from "./types/common.js";
|
||||
|
||||
/**
|
||||
* Main telemetry client. Queues task-completion events for background
|
||||
@@ -24,7 +24,9 @@ export class TelemetryClient {
|
||||
this.config = resolveConfig(config);
|
||||
this.queue = new EventQueue(this.config.maxQueueSize);
|
||||
this.submitter = new BatchSubmitter(this.config);
|
||||
this.predictionCache = new PredictionCache(this.config.predictionCacheTtlMs);
|
||||
this.predictionCache = new PredictionCache(
|
||||
this.config.predictionCacheTtlMs,
|
||||
);
|
||||
this._eventBuilder = new EventBuilder(this.config);
|
||||
}
|
||||
|
||||
@@ -86,9 +88,9 @@ export class TelemetryClient {
|
||||
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
method: 'POST',
|
||||
method: "POST",
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ queries }),
|
||||
signal: controller.signal,
|
||||
|
||||
Reference in New Issue
Block a user