Skip to content

Commit

Permalink
style(binding-http/subscription-protocols): remove any casting
Browse files Browse the repository at this point in the history
  • Loading branch information
relu91 committed Jun 7, 2023
1 parent ed54fc9 commit 3eb59de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/binding-http/src/subscription-protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class LongPollingSubscription implements InternalSubscription {
if (handshake) {
const headRequest = await this.client["generateFetchRequest"](this.form, "HEAD", {
timeout: 1000,
signal: this.abortController.signal as any,
signal: this.abortController.signal,
});
const result = await this.client["fetch"](headRequest);
if (result.ok) resolve();
Expand All @@ -56,7 +56,7 @@ export class LongPollingSubscription implements InternalSubscription {
// long timeout for long polling
const request = await this.client["generateFetchRequest"](this.form, "GET", {
timeout: 60 * 60 * 1000,
signal: this.abortController.signal as any,
signal: this.abortController.signal,
});
debug(`HttpClient (subscribeResource) sending ${request.method} to ${request.url}`);

Expand Down

0 comments on commit 3eb59de

Please sign in to comment.