Skip to content

Commit b40cd74

Browse files
committed
REMOVE TEMP THING
1 parent 70f0c41 commit b40cd74

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

server/aws-lsp-codewhisperer/src/shared/streamingClientService.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,6 @@ export class StreamingClientServiceToken extends StreamingClientServiceBase {
122122
this.inflightRequests.add(controller)
123123

124124
try {
125-
// TODO: remove
126-
if (1) {
127-
const freeTierLimitError = new Error()
128-
;(freeTierLimitError as any).name = 'ThrottlingException'
129-
;(freeTierLimitError as any).message = 'Free tier limit reached'
130-
;(freeTierLimitError as any).code = 'ThrottlingException'
131-
;(freeTierLimitError as any).time = new Date()
132-
;(freeTierLimitError as any).reason = 'MONTHLY_REQUEST_COUNT'
133-
// ;(freeTierLimitError as any).requestId = response.$metadata.requestId
134-
// ;(freeTierLimitError as any).$metadata = { ...response.$metadata }
135-
throw freeTierLimitError
136-
}
137-
138125
const response = await this.client.generateAssistantResponse(
139126
{ ...request, profileArn: this.profileArn },
140127
{

0 commit comments

Comments
 (0)