mirror of
https://github.com/syumai/workers.git
synced 2025-03-11 01:39:11 +00:00
use const
This commit is contained in:
parent
647f1f0e2f
commit
7727989dbe
@ -10,7 +10,7 @@ export class Counter {
|
|||||||
// Handle HTTP requests from clients.
|
// Handle HTTP requests from clients.
|
||||||
async fetch(request) {
|
async fetch(request) {
|
||||||
// Apply requested action.
|
// Apply requested action.
|
||||||
let url = new URL(request.url);
|
const url = new URL(request.url);
|
||||||
|
|
||||||
// Durable Object storage is automatically cached in-memory, so reading the
|
// Durable Object storage is automatically cached in-memory, so reading the
|
||||||
// same key every request is fast. (That said, you could also store the
|
// same key every request is fast. (That said, you could also store the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user