Skip to content

Commit

Permalink
remove caching from fg transport template (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
karen-stepanyan authored Sep 4, 2024
1 parent 8b51e2d commit 930fa0b
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class CustomTransport implements Transport<CustomTransportTypes> {
// request, process it,save it in the cache and return to user.
<% } -%>
async foregroundExecute(
req: AdapterRequest<typeof inputParameters.validated>
_: AdapterRequest<typeof inputParameters.validated>
): Promise<AdapterResponse<CustomTransportTypes['Response']>> {

// Custom transport logic
Expand All @@ -68,16 +68,6 @@ export class CustomTransport implements Transport<CustomTransportTypes> {
providerIndicatedTimeUnixMs: undefined,
},
}
<% if (includeComments) { -%>
// Once the response object is ready, write it to the cache. Use the transport name, request payload and constructed response. Once cache is
// saved, return the response to the user.
<% } -%>
await this.responseCache.write(this.name, [
{
params: req.requestContext.data,
response,
},
])

return response
}
Expand Down

0 comments on commit 930fa0b

Please sign in to comment.