Skip to content

Commit 70e1018

Browse files
authored
fix typo (#1121)
1 parent 2d91ea0 commit 70e1018

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/RequestOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public HttpAsyncResponseConsumerFactory getHttpAsyncResponseConsumerFactory() {
110110

111111
/**
112112
* How this request should handle warnings. If null (the default) then
113-
* this request will default to the behavior dictacted by
113+
* this request will default to the behavior dictated by
114114
* {@link Rest5ClientBuilder#setStrictDeprecationMode}.
115115
* <p>
116116
* This can be set to {@link WarningsHandler#PERMISSIVE} if the client
@@ -273,7 +273,7 @@ public Builder setHttpAsyncResponseConsumerFactory(HttpAsyncResponseConsumerFact
273273

274274
/**
275275
* How this request should handle warnings. If null (the default) then
276-
* this request will default to the behavior dictacted by
276+
* this request will default to the behavior dictated by
277277
* {@link Rest5ClientBuilder#setStrictDeprecationMode}.
278278
* <p>
279279
* This can be set to {@link WarningsHandler#PERMISSIVE} if the client

rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/Rest5Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public void cancelled() {
452452
listener.onDefinitiveFailure(Cancellable.newCancellationException());
453453
}
454454
});
455-
// needed to be able to cancel asnyc requests
455+
// needed to be able to cancel async requests
456456
if (futureRef instanceof org.apache.hc.core5.concurrent.Cancellable) {
457457
request.httpRequest.setDependency((org.apache.hc.core5.concurrent.Cancellable) futureRef);
458458
}

rest5-client/src/main/java/co/elastic/clients/transport/rest5_client/low_level/sniffer/Sniffer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void run() {
129129
/*
130130
* Skipped or already started tasks do nothing. In most cases tasks will be cancelled and not run, but we want to protect for
131131
* cases where future#cancel returns true yet the task runs. We want to make sure that such tasks do nothing otherwise they will
132-
* schedule another round at the end and so on, leaving us with multiple parallel sniffing "tracks" whish is undesirable.
132+
* schedule another round at the end and so on, leaving us with multiple parallel sniffing "tracks" which is undesirable.
133133
*/
134134
if (taskState.compareAndSet(TaskState.WAITING, TaskState.STARTED) == false) {
135135
return;

0 commit comments

Comments
 (0)