Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
chore: appease linter
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
Alan Shaw committed Aug 28, 2019
1 parent a600dce commit d34850b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pubsub/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ module.exports = configure(({ ky }) => {
const searchParams = new URLSearchParams(options.searchParams)
searchParams.set('arg', topic)

return ky.post(`pubsub/pub?${searchParams}&arg=${encodeBuffer(data)}`, {
const res = await ky.post(`pubsub/pub?${searchParams}&arg=${encodeBuffer(data)}`, {
timeout: options.timeout,
signal: options.signal,
headers: options.headers
}).text()

return res
}
})

Expand Down

0 comments on commit d34850b

Please sign in to comment.