Skip to content

Commit 2233014

Browse files
committed
chore(internal): add codegen.log to .gitignore (#35)
1 parent d2c7e81 commit 2233014

3 files changed

Lines changed: 1 addition & 59 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.gradle
22
.idea
33
build
4+
codegen.log

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/events/SubscriptionServiceAsyncImpl.kt

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -202,36 +202,6 @@ constructor(
202202
}
203203
}
204204

205-
private val listAttemptsHandler: Handler<EventSubscriptionListAttemptsPageAsync.Response> =
206-
jsonHandler<EventSubscriptionListAttemptsPageAsync.Response>(clientOptions.jsonMapper)
207-
.withErrorHandler(errorHandler)
208-
209-
/** List all the message attempts for a given event subscription. */
210-
override fun listAttempts(
211-
params: EventSubscriptionListAttemptsParams,
212-
requestOptions: RequestOptions
213-
): CompletableFuture<EventSubscriptionListAttemptsPageAsync> {
214-
val request =
215-
HttpRequest.builder()
216-
.method(HttpMethod.GET)
217-
.addPathSegments("event_subscriptions", params.getPathParam(0), "attempts")
218-
.putAllQueryParams(params.getQueryParams())
219-
.putAllHeaders(clientOptions.headers)
220-
.putAllHeaders(params.getHeaders())
221-
.build()
222-
return clientOptions.httpClient.executeAsync(request, requestOptions).thenApply { response
223-
->
224-
response
225-
.let { listAttemptsHandler.handle(it) }
226-
.apply {
227-
if (requestOptions.responseValidation ?: clientOptions.responseValidation) {
228-
validate()
229-
}
230-
}
231-
.let { EventSubscriptionListAttemptsPageAsync.of(this, params, it) }
232-
}
233-
}
234-
235205
private val recoverHandler: Handler<Void?> = emptyHandler().withErrorHandler(errorHandler)
236206

237207
/** Resend all failed messages since a given time. */

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/events/SubscriptionServiceImpl.kt

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -192,35 +192,6 @@ constructor(
192192
}
193193
}
194194

195-
private val listAttemptsHandler: Handler<EventSubscriptionListAttemptsPage.Response> =
196-
jsonHandler<EventSubscriptionListAttemptsPage.Response>(clientOptions.jsonMapper)
197-
.withErrorHandler(errorHandler)
198-
199-
/** List all the message attempts for a given event subscription. */
200-
override fun listAttempts(
201-
params: EventSubscriptionListAttemptsParams,
202-
requestOptions: RequestOptions
203-
): EventSubscriptionListAttemptsPage {
204-
val request =
205-
HttpRequest.builder()
206-
.method(HttpMethod.GET)
207-
.addPathSegments("event_subscriptions", params.getPathParam(0), "attempts")
208-
.putAllQueryParams(params.getQueryParams())
209-
.putAllHeaders(clientOptions.headers)
210-
.putAllHeaders(params.getHeaders())
211-
.build()
212-
return clientOptions.httpClient.execute(request, requestOptions).let { response ->
213-
response
214-
.let { listAttemptsHandler.handle(it) }
215-
.apply {
216-
if (requestOptions.responseValidation ?: clientOptions.responseValidation) {
217-
validate()
218-
}
219-
}
220-
.let { EventSubscriptionListAttemptsPage.of(this, params, it) }
221-
}
222-
}
223-
224195
private val recoverHandler: Handler<Void?> = emptyHandler().withErrorHandler(errorHandler)
225196

226197
/** Resend all failed messages since a given time. */

0 commit comments

Comments
 (0)