Skip to content

Commit

Permalink
default to null trailers
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Chiu <[email protected]>
  • Loading branch information
Alan Chiu committed Oct 15, 2019
1 parent 504086d commit c492720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class EnvoyStreamEmitter(
* @throws IllegalStateException when the stream is not active.
* @throws EnvoyException when there is an exception ending the stream or sending trailers.
*/
override fun close(trailers: Map<String, List<String>>? = null) {
override fun close(trailers: Map<String, List<String>>?) {
trailers?.let {
stream.sendTrailers(it)
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ interface StreamEmitter : CancelableStream {
* @throws EnvoyException when there is an exception ending the stream or sending trailers.
*/
@Throws(EnvoyException::class)
fun close(trailers: Map<String, List<String>>?)
fun close(trailers: Map<String, List<String>>? = null)
}

0 comments on commit c492720

Please sign in to comment.