Skip to content

Commit

Permalink
fix: transport async function example (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrujalshah28 authored Jul 21, 2021
1 parent 0470704 commit 35c9b6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ The exported function can also be async. Imagine the following transport:

```js
import fs from 'fs'
import { once } from('events')
import { once } from 'events'
export default async (options) => {
const stream = fs.createWriteStream(opts.destination)
const stream = fs.createWriteStream(options.destination)
await once(stream, 'open')
return stream
}
Expand Down

0 comments on commit 35c9b6e

Please sign in to comment.