Skip to content

Commit

Permalink
phase out kv
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Jun 22, 2024
1 parent 30e01de commit 4892b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/endpoints/quickplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class ServerListQuery extends OpenAPIRoute {
if (values && values.value) {
cachedResponse = values.value;
cachedResponseExpiration = values.until ?? now + ONE_MINUTE;
} else {
} else if (false) {
const { value, metadata } = await env.QUICKPLAY.getWithMetadata(
"servers"
);
Expand Down Expand Up @@ -211,7 +211,7 @@ export class ServerListUpdate extends OpenAPIRoute {

const value = JSON.stringify(servers);

if (true) {
if (false) {
await env.QUICKPLAY.put("servers", value, {
metadata: { until },
});
Expand Down

0 comments on commit 4892b85

Please sign in to comment.