Skip to content

Commit

Permalink
chore: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-guggisberg committed Sep 13, 2023
1 parent 6010506 commit 61894ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/core/h2.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,16 @@ const request = async (ctx, url, options) => {
}

const enablePush = !!(pushPromiseHandler || pushHandler);
session = connect(origin, { ...connectOptions, settings: { ...connectOptions.settings, enablePush } });
session = connect(
origin,
{
...connectOptions,
settings: {
...connectOptions.settings,
enablePush,
},
},
);
session.setMaxListeners(1000);
session.setTimeout(idleSessionTimeout, () => {
debug(`closing session ${origin} after ${idleSessionTimeout} ms of inactivity`);
Expand Down

0 comments on commit 61894ad

Please sign in to comment.