Skip to content

Commit

Permalink
fix: example code in transports.md (#1761)
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu authored Jul 31, 2023
1 parent 6eac50d commit a47c857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/transports.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default async function (opts) {

return build(async function (source) {
for await (let obj of source) {
const toDrain = !destination.write(obj.message.toUpperCase() + '\n')
const toDrain = !destination.write(obj.msg.toUpperCase() + '\n')
// This block will handle backpressure
if (toDrain) {
await once(destination, 'drain')
Expand Down

0 comments on commit a47c857

Please sign in to comment.