Skip to content

Commit

Permalink
Fix tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubFrejlach committed Jan 13, 2025
1 parent 5fc7a28 commit a850069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import osidb_bindings
```

### Create a session
The Session is the core component of the bindings that you'll interact with. You can create a session using osidb_bindings.new_session. Once created, the session serves as the gateway to access various endpoints.
The Session is the core component of the bindings that you'll interact with. You can create a session using `osidb_bindings.new_session`. Once created, the session serves as the gateway to access various endpoints.

When initializing a session, you must specify the osidb_server_uri of the OSIDB instance you want to connect to. In this tutorial, we'll use a local OSIDB instance hosted on port 8000.

Expand Down Expand Up @@ -188,7 +188,7 @@ Following operations are demonstrated on `flaws` resource, to work with differen

By default, the system allows up to 10 concurrent connections. This limit can be adjusted by setting the `OSIDB_BINDINGS_MAX_CONCURRENCY` environment variable. It is highly recommended to keep the limit between 1 and 50 concurrent connections. Exceeding this limit may lead to service overload, which could be interpreted as a Denial-of-Service attack.

```python
```bash
export OSIDB_BINDINGS_MAX_CONCURRENCY=30
```

Expand Down

0 comments on commit a850069

Please sign in to comment.