Skip to content

Commit

Permalink
Fix more stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Fredy Wijaya <[email protected]>
  • Loading branch information
fredyw committed Mar 7, 2024
1 parent 5efe35f commit a2e6eb0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions mobile/docs/root/api/http.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Start and interact with an HTTP stream in **Kotlin**::
}
.setOnError { ... }
.setOnCancel { ... }
.start(Executors.newSingleThreadExecutor())
.start()
.sendHeaders(...)
.sendData(...)

Expand Down Expand Up @@ -166,7 +166,7 @@ Doing so returns a ``Stream`` which allows the sender to interact with the strea
.newStreamPrototype()
...
val stream = prototype
.start(Executors.newSingleThreadExecutor())
.start()
.sendHeaders(...)
.sendData(...)

Expand Down Expand Up @@ -215,7 +215,7 @@ For example:
.build()
val stream = streamClient
.newStreamPrototype()
.start(Executors.newSingleThreadExecutor())
.start()

// Headers-only
stream.sendHeaders(requestHeaders, true)
Expand Down
3 changes: 1 addition & 2 deletions mobile/examples/java/hello_world/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import io.envoyproxy.envoymobile.shared.Success;
import kotlin.Unit;

import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.Arrays;
import java.util.HashSet;
Expand Down Expand Up @@ -131,7 +130,7 @@ private void makeRequest() {
recyclerView.post(() -> viewAdapter.add(new Failure(message)));
return Unit.INSTANCE;
})
.start(Executors.newSingleThreadExecutor())
.start()
.sendHeaders(requestHeaders, true);

clear_text = !clear_text;
Expand Down
3 changes: 1 addition & 2 deletions mobile/examples/kotlin/hello_world/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import io.envoyproxy.envoymobile.shared.Failure
import io.envoyproxy.envoymobile.shared.ResponseRecyclerViewAdapter
import io.envoyproxy.envoymobile.shared.Success
import java.io.IOException
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit

private const val REQUEST_HANDLER_THREAD_NAME = "hello_envoy_kt"
Expand Down Expand Up @@ -141,7 +140,7 @@ class MainActivity : Activity() {
Log.d("MainActivity", message)
recyclerView.post { viewAdapter.add(Failure(message)) }
}
.start(Executors.newSingleThreadExecutor())
.start()
.sendHeaders(requestHeaders, true)
}

Expand Down

0 comments on commit a2e6eb0

Please sign in to comment.