Skip to content

Commit

Permalink
chore: remove TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
viglucci committed Jan 12, 2022
1 parent ea42001 commit d5059bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ export default function requestResponse<TData, RData>(
return new Promise((resolve, reject) => {
rsocket.requestResponse(payload, {
onNext(payload: Payload): void {
// TODO: is there data loss by only resolving with `payload.data`?
// should metadata be included in the resolved value?
resolve(outputCodec.decode(payload.data));
},
onComplete(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ export default function requestStream<TData, RData>(
) {
const exchangeFunction = (subscriber, initialRequestN) => {
const payload = {
// TODO: should inputCodec be responsible for handling empty data?
// TODO: Buffer needs to be injectable to support browsers
data: data ? inputCodec.encode(data) : Buffer.allocUnsafe(0),
metadata: encodeCompositeMetadata(metadata),
};
Expand Down

0 comments on commit d5059bf

Please sign in to comment.