Skip to content

Commit

Permalink
can this work?
Browse files Browse the repository at this point in the history
  • Loading branch information
viktree committed Feb 15, 2024
1 parent 2da55c9 commit 4e74631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/microservice/gcloud-pub-sub.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { MESSAGE, ERROR, PUB_SUB_DEFAULT_RETRY_CODES } from '../helpers/constant
import { GCloudPubSubServerOptions } from '../interfaces/gcloud-pub-sub.interface'

/* istanbul ignore next */
const RETRY_INTERVAL = 5000

export class GCloudPubSubServer /* istanbul ignore next */
extends Server
Expand Down Expand Up @@ -38,7 +39,6 @@ export class GCloudPubSubServer /* istanbul ignore next */
public handleErrorFactory(subscription: Subscription, subcriptionName: string) {
return (error): void => {
this.handleError(error)
const RETRY_INTERVAL = 5000
if (!this.isShuttingDown && PUB_SUB_DEFAULT_RETRY_CODES.includes(error.code)) {
this.logger.warn(`Closing subscription: ${subcriptionName}`)
subscription.close()
Expand Down

0 comments on commit 4e74631

Please sign in to comment.