Skip to content

Commit

Permalink
feat(2981): remove interledgerjs and merge with main branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Nov 8, 2024
1 parent c4d32d2 commit f307b80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ build
packages/**/src/openapi/specs/schemas.yaml
packages/**/src/openapi/specs/auth-server.yaml
packages/**/src/openapi/specs/resource-server.yaml
packages/**/src/openapi/specs/wallet-address-server.yaml
packages/**/src/openapi/specs/wallet-address-server.yaml

# InterledgerJS local debug:
packages/backend/interledgerjs
4 changes: 2 additions & 2 deletions packages/backend/src/accounting/psql/balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function getAccountBalances(
account: LedgerAccount,
trx?: TransactionOrKnex
): Promise<AccountBalance> {
const stopTimer = deps.telemetry.startTimer('psql_get_account_balances', {
const stopTimer = deps.telemetry?.startTimer('psql_get_account_balances', {
callName: 'AccountingService:Postgres:getAccountBalances'
})
try {
Expand Down Expand Up @@ -58,6 +58,6 @@ export async function getAccountBalances(

throw err
} finally {
stopTimer()
stopTimer && stopTimer()
}
}
8 changes: 1 addition & 7 deletions packages/backend/src/tests/telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@ export class MockTelemetryService implements TelemetryService {
public getInstanceName(): string | undefined {
return 'serviceName'
}
/* eslint-disable @typescript-eslint/no-unused-vars */
public startTimer(
name: string,
attributes?: Record<string, unknown>
): () => void {
return () => undefined
}

public async shutdown(): Promise<void> {}
public startTimer(): () => void {
return () => undefined
Expand Down

0 comments on commit f307b80

Please sign in to comment.