Skip to content

Commit

Permalink
chore: update Actor Standby code examples (#1092)
Browse files Browse the repository at this point in the history
This PR fixes small things in the example code for Actor Standby.
  • Loading branch information
jirimoravcik authored Jul 9, 2024
1 parent 0e9058f commit b35560c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/platform/actors/running/actor_standby.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import { Actor } from 'apify';

await Actor.init();

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

```python
from http.server import HTTPServer, SimpleHTTPRequestHandler
from apify import Actor, Configuration
from apify import Actor

class GetHandler(SimpleHTTPRequestHandler):
def do_GET(self):
Expand Down

0 comments on commit b35560c

Please sign in to comment.