Skip to content

Commit

Permalink
docs(README): fix heading hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
weyoss committed Nov 11, 2023
1 parent 631f239 commit 6dc0bd5
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 @@ -35,7 +35,7 @@ RedisSMQ is a Node.js library for queuing messages (aka jobs) and processing the
* **[Highly optimized](https://lgtm.com/projects/g/weyoss/redis-smq/context:javascript)**: Strongly-typed and implemented using pure callbacks, with small memory footprint and no memory leaks. See [Callback vs Promise vs Async/Await benchmarks](https://gist.github.com/weyoss/24f9ecbda175d943a48cb7ec38bde821).


### RedisSMQ Use Case: Multi-Queue Producers & Multi-Queue Consumers
## RedisSMQ Use Case: Multi-Queue Producers & Multi-Queue Consumers

 

Expand All @@ -53,7 +53,7 @@ Producers and consumers exchange data using one or multiple queues that may be c

A queue is responsible for holding messages which are produced by producers and are delivered to consumers.

## Creating a queue
### Creating a queue

```javascript
const { Queue, EQueueType } = require('redis-smq');
Expand All @@ -64,7 +64,7 @@ const queue = new Queue();
queue.save('my_queue', EQueueType.LIFO_QUEUE, (err) => console.log(err));
```

## Producing a message
### Producing a message

```javascript
const { Producer, Message } = require('redis-smq');
Expand All @@ -77,7 +77,7 @@ message.setQueue('my_queue').setBody('Hello Word!')
producer.produce(message, (err) => console.log(err));
```

## Consuming a message
### Consuming a message

```javascript
const { Consumer } = require('redis-smq');
Expand Down

0 comments on commit 6dc0bd5

Please sign in to comment.