Skip to content

Commit 9b27d79

Browse files
committed
Less stale time
1 parent 076904c commit 9b27d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/services/realtime/v1StreamsGlobal.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function initializeS2RealtimeStreamsCache() {
8787
accessToken: new Namespace<string>(ctx, {
8888
stores: [memoryStore, redisCacheStore],
8989
fresh: Math.floor(env.REALTIME_STREAMS_S2_ACCESS_TOKEN_EXPIRATION_IN_MS / 2),
90-
stale: Math.floor(env.REALTIME_STREAMS_S2_ACCESS_TOKEN_EXPIRATION_IN_MS),
90+
stale: Math.floor(env.REALTIME_STREAMS_S2_ACCESS_TOKEN_EXPIRATION_IN_MS / 2 + 60_000),
9191
}),
9292
});
9393
}

0 commit comments

Comments
 (0)