Skip to content

Commit

Permalink
Properly convert JS array to FBS
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Sep 7, 2023
1 parent e2f455d commit 6fca2b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions node/src/Transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1730,9 +1730,11 @@ function createConsumeDataRequest({

if (subchannels)
{
// TODO: Obviously this is wrong since I have to serialize the array into FBS
// format.
FbsTransport.ConsumeDataRequest.addSubchannels(builder, subchannels);
const subchannelsOffset = FbsTransport.ConsumeDataRequest.createSubchannelsVector(
builder, subchannels
);

FbsTransport.ConsumeDataRequest.addSubchannels(builder, subchannelsOffset);
}

return FbsTransport.ConsumeDataRequest.endConsumeDataRequest(builder);
Expand Down

0 comments on commit 6fca2b3

Please sign in to comment.