Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
chore: try bump timeout to 30 secs
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Feb 22, 2024
1 parent 14a94b2 commit eebb12b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/kanao-gateway/src/Structures/KanaoGateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class NezuGateway extends EventEmitter {
public rest = new REST({ api: proxy, rejectOnRateLimit: proxy === "https://discord.com/api" ? null : () => false });
public logger = createLogger("kanao-gateway", clientId, storeLogs, lokiHost);

public database = new Database(join(process.cwd(), "storage", "kanao-gateway.db"));
public database = new Database(join(process.cwd(), "storage", "kanao-gateway.db"), { timeout: 30_000 });
public drizzle = drizzle(this.database, { schema });

public prometheus = new APM({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { createLogger } from "../Logger.js";
import { ProcessContextFetchingStrategy } from "./ProcessContextFetchingStrategy.js";

export class ProcessBootstrapper {
public database = new Database(join(process.cwd(), "storage", "kanao-gateway.db"));
public database = new Database(join(process.cwd(), "storage", "kanao-gateway.db"), { timeout: 30_000 });
public drizzle = drizzle(this.database, { schema });

/**
Expand Down

0 comments on commit eebb12b

Please sign in to comment.