Skip to content

Commit

Permalink
feat(shuttle): Pipe connectionTimeout arg through EventStreamHubSubsc…
Browse files Browse the repository at this point in the history
…riber

    Follow-up to farcasterxyz#2367. Missed piping through BaseHubSubscribers new `connectionTimeout` param through to EventStreamHubSubscriber.
  • Loading branch information
tybook committed Oct 25, 2024
1 parent 913c0f6 commit 0a46caf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/itchy-feet-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/shuttle": patch
---

feat(shuttle): Pipe connectionTimeout arg through EventStreamHubSubscriber
3 changes: 2 additions & 1 deletion packages/shuttle/src/shuttle/hubSubscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,10 @@ export class EventStreamHubSubscriber extends BaseHubSubscriber {
eventTypes?: HubEventType[],
totalShards?: number,
shardIndex?: number,
connectionTimeout?: number,
options?: EventStreamHubSubscriberOptions,
) {
super(label, hubClient.client, log, eventTypes, totalShards, shardIndex);
super(label, hubClient.client, log, eventTypes, totalShards, shardIndex, connectionTimeout);
this.eventStream = eventStream;
this.redis = redis;
this.streamKey = `hub:${hubClient.host}:evt:msg:${shardKey}`;
Expand Down

0 comments on commit 0a46caf

Please sign in to comment.