Skip to content

Commit

Permalink
one FIXME
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Jun 23, 2023
1 parent 7341a5a commit 0f1bde6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/server/src/plugin/subscriptionCallback/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,12 @@ class SubscriptionManager {
});
self.requestsInFlight.add(completeRequestPromise);
await completeRequestPromise;
} catch {
// FIXME: handle this error?
} catch (e) {
// This is just the `complete` request. If something fails here, we
// can still proceed as usual and cleanup the subscription. The router
// should just terminate the subscription on its end when it doesn't
// receive a heartbeat for it.
self.logger?.error(`\`complete\` request failed: ${e}`, id);
} finally {
self.requestsInFlight.delete(completeRequestPromise!);
// clean up the subscription (and heartbeat if necessary)
Expand Down

0 comments on commit 0f1bde6

Please sign in to comment.