Skip to content

Commit

Permalink
docs: update rhai timing execution example (#5512)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meschreiber authored Jun 24, 2024
1 parent 4c22cce commit cb352b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/customizations/rhai-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fn process_response(response) {
}
fn supergraph_service(service) {
const response_callback = Fn("process_request");
const response_callback = Fn("process_response");
service.map_response(response_callback);
}
```
Expand Down Expand Up @@ -668,4 +668,4 @@ You can also create your own status code from an integer:
if response.status_code == status_code_from_int(200) {
print(`ok`);
}
```
```

0 comments on commit cb352b6

Please sign in to comment.