Skip to content

Commit

Permalink
client.show doesn't exists in tcp client #745
Browse files Browse the repository at this point in the history
  • Loading branch information
sksamuel committed Feb 13, 2017
1 parent 8f6e5d1 commit 9a4074b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.sksamuel.elastic4s

import java.net.InetSocketAddress

import cats.Show
import com.sksamuel.exts.Logging
import org.elasticsearch.{ElasticsearchException, ElasticsearchWrapperException}
import org.elasticsearch.client.Client
Expand All @@ -19,6 +20,9 @@ trait TcpClient {

def java: Client

// returns a String containing the Json of the request
def show[T](request: T)(implicit show: Show[T]): String = show.show(request)

def execute[T, R, Q](request: T)(implicit executable: Executable[T, R, Q]): Future[Q] = {
try {
executable(java, request)
Expand Down

0 comments on commit 9a4074b

Please sign in to comment.