Skip to content

Commit

Permalink
Merge pull request #6 from a-a-GiTHuB-a-a/patch-1
Browse files Browse the repository at this point in the history
Fix four comma typos
  • Loading branch information
jsumners authored Sep 21, 2023
2 parents f4ad18b + 16ba322 commit 7064a47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import Fastify from 'fastify'

const fastify = Fastify()
await fastify.register(import('@fastify/throttle'), {
bytesPerSecond: 1024 * 1024 // 1MB/s
streamPayloads: true // throttle the payload if it is a stream
bufferPayloads: true // throttle the payload if it is a Buffer
bytesPerSecond: 1024 * 1024, // 1MB/s
streamPayloads: true, // throttle the payload if it is a stream
bufferPayloads: true, // throttle the payload if it is a Buffer
stringPayloads: true // throttle the payload if it is a string
})

Expand All @@ -44,8 +44,8 @@ You can pass the following options during the plugin registration:
```js
await fastify.register(import('@fastify/throttle'), {
bytesPerSecond: 1000, // 1000 bytes per second
streamPayloads: true // throttle the payload if it is a stream
bufferPayloads: true // throttle the payload if it is a Buffer
streamPayloads: true, // throttle the payload if it is a stream
bufferPayloads: true, // throttle the payload if it is a Buffer
stringPayloads: true // throttle the payload if it is a string
})
```
Expand Down

0 comments on commit 7064a47

Please sign in to comment.