Skip to content

Commit 2ca4cf0

Browse files
committed
Remove spurious env params in examples
1 parent c074858 commit 2ca4cf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

01-hello/src/entry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
class Default(WorkerEntrypoint):
5-
async def fetch(self, request, env):
5+
async def fetch(self, request):
66
return Response("Hello world!")

08-cron/src/entry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class Default(WorkerEntrypoint):
55
# runs based on "triggers" in wrangler config
6-
async def scheduled(self, controller, env, ctx):
6+
async def scheduled(self, controller):
77
print("Scheduled task has been executed.")
88

99
async def fetch(self):

0 commit comments

Comments
 (0)