File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
sources/platform/actors/development/programming_interface Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class GetHandler(SimpleHTTPRequestHandler):
6262
6363async def main () -> None :
6464 async with Actor:
65- with HTTPServer((' ' , Actor.config .web_server_port), GetHandler) as http_server:
65+ with HTTPServer((' ' , Actor.configuration .web_server_port), GetHandler) as http_server:
6666 http_server.serve_forever()
6767```
6868
@@ -131,7 +131,7 @@ class GetHandler(SimpleHTTPRequestHandler):
131131
132132async def main () -> None :
133133 async with Actor:
134- with HTTPServer((' ' , Actor.config .standby_port), GetHandler) as http_server:
134+ with HTTPServer((' ' , Actor.configuration .standby_port), GetHandler) as http_server:
135135 http_server.serve_forever()
136136```
137137
@@ -167,7 +167,7 @@ from apify import Actor
167167
168168async def main () -> None :
169169 async with Actor:
170- if Actor.config .meta_origin == ' STANDBY' :
170+ if Actor.configuration .meta_origin == ' STANDBY' :
171171 # Start your Standby server here
172172 else :
173173 # Perform the standard Actor operations here
Original file line number Diff line number Diff line change @@ -197,13 +197,13 @@ from apify import Actor
197197
198198async def main ():
199199 async with Actor:
200- old_token = Actor.config .token
200+ old_token = Actor.configuration .token
201201 Actor.log.info(f ' old_token = { old_token} ' )
202202
203203 # use different token
204- Actor.config .token = ' s0m3n3wt0k3n'
204+ Actor.configuration .token = ' s0m3n3wt0k3n'
205205
206- new_token = Actor.config .token
206+ new_token = Actor.configuration .token
207207 Actor.log.info(f ' new_token = { new_token} ' )
208208```
209209
You can’t perform that action at this time.
0 commit comments