Skip to content

Commit b35560c

Browse files
authored
chore: update Actor Standby code examples (#1092)
This PR fixes small things in the example code for Actor Standby.
1 parent 0e9058f commit b35560c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/platform/actors/running/actor_standby.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ import { Actor } from 'apify';
8383

8484
await Actor.init();
8585

86-
const server = http.createServer(async (req, res) => {
86+
const server = http.createServer((req, res) => {
8787
res.writeHead(200, { 'Content-Type': 'text/plain' });
8888
res.end('Hello from Actor Standby!\n');
8989
});
@@ -96,7 +96,7 @@ server.listen(Actor.config.get('standbyPort'));
9696

9797
```python
9898
from http.server import HTTPServer, SimpleHTTPRequestHandler
99-
from apify import Actor, Configuration
99+
from apify import Actor
100100

101101
class GetHandler(SimpleHTTPRequestHandler):
102102
def do_GET(self):

0 commit comments

Comments
 (0)