Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveigah authored Oct 26, 2024
1 parent eb6973a commit ed6c2de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ end

## Basic Usage

Define your application client
### Define your application client

```elixir
defmodule MyApp.Client do
use Klife.Client, otp_app: :my_app
end
```

Add basic configuration
### Add basic configuration

```elixir
config :my_app, MyApp.Client,
Expand All @@ -61,7 +61,7 @@ config :my_app, MyApp.Client,
ssl: false
]
```
Add the client to the supervision tree
### Add the client to the supervision tree

```elixir
children = [ MyApp.Client ]
Expand All @@ -70,7 +70,7 @@ opts = [strategy: :one_for_one, name: Example.Supervisor]
Supervisor.start_link(children, opts)
```

Call the producer API
### Call the producer API

```elixir
my_rec = %Klife.Record{value: "my_val_1", topic: "my_topic_1"}
Expand Down

0 comments on commit ed6c2de

Please sign in to comment.