Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add template to creative debug #82

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/builder/builder_factory.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import QueryBuilder from "./query_builder";
import TRAPIQueryBuilder from "./trapi_query_builder";
import TemplateQueryBuilder from "./template_query_builder";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:call-apis:query");
import type { APIEdge } from "../types";
import { QueryHandlerOptions } from "@biothings-explorer/types";
Expand Down
2 changes: 1 addition & 1 deletion src/dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
Telemetry,
RedisClient,
} from "@biothings-explorer/utils";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:call-apis:query");

export default class SubQueryDispatcher {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LogEntry, StampedLog, RedisClient } from "@biothings-explorer/utils";
import { APIEdge, UnavailableAPITracker } from "./types";
import { QueryHandlerOptions } from "@biothings-explorer/types";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:call-apis:query");
import queryBuilder from "./builder/builder_factory";
import TRAPIQueryBuilder from "./builder/trapi_query_builder";
Expand Down
2 changes: 1 addition & 1 deletion src/query_pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import BaseQueryBuilder from "./builder/base_query_builder";
import { UnavailableAPITracker } from "./types";
import os from "os";
import axios, { AxiosRequestConfig, AxiosResponse } from "axios";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:call-apis:query");
import { Telemetry, LogEntry, StampedLog } from "@biothings-explorer/utils";
import axiosRetry from "axios-retry";
Expand Down
2 changes: 1 addition & 1 deletion src/query_queue.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BaseQueryBuilder from "./builder/base_query_builder";
import RateCounter from "./rate_limiter";
import { RedisClient } from "@biothings-explorer/utils";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:call-apis:query");

export default class APIQueryQueue {
Expand Down
2 changes: 1 addition & 1 deletion src/rate_limiter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BaseQueryBuilder from "./builder/base_query_builder";
import { RedisClient } from "@biothings-explorer/utils";
import Debug from "debug";
import { Debug } from "@biothings-explorer/utils";
const debug = Debug("bte:call-apis:query");

// Default rate limit of 100 queries per second, which shouldn't ever be reached
Expand Down
Loading