Skip to content

Commit

Permalink
fix(llc): fix generated code.
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Kumar <[email protected]>
  • Loading branch information
xsahil03x committed Aug 10, 2023
1 parent 3bfab88 commit e40529c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ Future<List<int>> doProtobufRequest(twirp.Context ctx, Uri url,
req.bodyBytes = msgReq.writeToBuffer();

// call onRequestPrepared hook for user to modify request
ctx = hooks.onRequestPrepared(ctx, req);
ctx = await hooks.onRequestPrepared(ctx, req);

// send data
final res = await httpClient.send(req);
Expand Down Expand Up @@ -380,7 +380,7 @@ Future<String> doJSONRequest(twirp.Context ctx, Uri url,
req.body = json.encode(msgReq.toProto3Json());

// call onRequestPrepared hook for user to modify request
ctx = hooks.onRequestPrepared(ctx, req);
ctx = await hooks.onRequestPrepared(ctx, req);

// send data
final res = await httpClient.send(req);
Expand Down

0 comments on commit e40529c

Please sign in to comment.