Skip to content

Commit f3a6d01

Browse files
committed
customizations for our needs
1 parent 726177f commit f3a6d01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GsClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ export class GsClient {
331331
await this.subscribe(this.client);
332332
} catch (error) {
333333
log.error(error);
334+
log.debug(`Retrying in ${this.env.DELAY_BEFORE_RECONNECT} milliseconds`);
335+
setTimeout(() => initiate(true), this.env.DELAY_BEFORE_RECONNECT);
334336
}
335337
};
336338

0 commit comments

Comments
 (0)