Skip to content

Commit

Permalink
Fix TachyonServer fake access token cleanup timer
Browse files Browse the repository at this point in the history
Make sure it's not keeping the node.js even loop active, preventing
exit even when nothing else is running.
  • Loading branch information
p2004a committed Jun 9, 2024
1 parent 5e5d180 commit e46ba24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tachyonServer.fake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export async function createTachyonServer(port: number) {
validAccessTokens.add(accessToken);
setTimeout(() => {
validAccessTokens.delete(accessToken);
}, timeoutSeconds * 1000);
}, timeoutSeconds * 1000).unref();

resp.header('cache-control', 'no-store');
return {
Expand Down

0 comments on commit e46ba24

Please sign in to comment.