Skip to content

Commit

Permalink
Removed promise poller options usage in subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
doughtnerd committed Mar 1, 2024
1 parent e303274 commit c3091dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test:docker": "docker-compose -f docker-compose.test.yml up --build --exit-code-from unit unit",
"test-coverage:docker": "docker-compose -f docker-compose.test.yml up --build --exit-code-from coverage coverage"
},
"version": "1.10.0",
"version": "1.10.1",
"main": "dist/index.js",
"author": "Chris Carlson",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/types/subscription.type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import EventEmitter from "node:events";
import promisePoller, { PromisePollerOptions } from "promise-poller";
import promisePoller from "promise-poller";

enum Status {
CLOSED,
Expand All @@ -18,7 +18,7 @@ type SubscriptionOptions = {
pollFn: () => Promise<void>;
pollingInterval: number;
retries: number;
retryStrategy: PromisePollerOptions<unknown>['strategy'];
retryStrategy: 'fixed-interval' | 'linear-backoff' | 'exponential-backoff' | undefined;
}

export class Subscription extends EventEmitter {
Expand Down

0 comments on commit c3091dc

Please sign in to comment.