Skip to content

Commit

Permalink
chore(webhooks): added env to config wh retries (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron authored Sep 19, 2023
1 parent 40c1773 commit 96907df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/base/streamer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SocketEvents, SocketUserEvent } from '../socket/events'
import { SocketService } from '../socket/service'
import { WebhookService } from '../webhooks/service'

const MAX_ATTEMPTS = 10
const MAX_ATTEMPTS = Number(process.env.WEBHOOKS_MAX_RETRIES) ?? 10

export class Streamer {
private logger = new Logger('Stream')
Expand Down
1 change: 1 addition & 0 deletions packages/server/src/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type MessagingEnv = FrameworkEnv & {
ENABLE_LEGACY_CHANNELS?: string
METRICS_ENABLED?: string
METRICS_PORT?: string
WEBHOOKS_MAX_RETRIES?: string
}

declare global {
Expand Down

0 comments on commit 96907df

Please sign in to comment.