Skip to content

Commit

Permalink
Merge pull request #37 from ainize-team/fix/woojae/handler
Browse files Browse the repository at this point in the history
fix: delte interval
  • Loading branch information
akastercomcom authored Sep 14, 2023
2 parents 652c9c5 + 600e39e commit 665fa5c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/handlers/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ export default class Handler {
* @returns Nothing.
*/
async connect() {
await this.ain.em.connect({
heartbeatIntervalMs: HANDLER_HEARBEAT_INTERVAL,
}, this.disconnectedCallback.bind(this));
await this.ain.em.connect({}, this.disconnectedCallback.bind(this));
this.isConnected = true;
};

private disconnectedCallback() {
private async disconnectedCallback() {
this.isConnected = false;
this.connect();
await this.connect();
}

/**
Expand Down

0 comments on commit 665fa5c

Please sign in to comment.