Permalink
Browse files

Merge pull request #22 from holdenk/master

Use sniff mode for transport client in ES
  • Loading branch information...
2 parents 6cf7e02 + 445ed39 commit 50f62911026b9788d1eda8476896776439971d64 @adamalix adamalix committed Apr 9, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 build.sbt
  2. +1 −1 src/main/scala/com/foursquare/slashem/Schema.scala
View
@@ -1,6 +1,6 @@
name := "slashem"
-version := "0.9.7"
+version := "0.9.8"
organization := "com.foursquare"
@@ -230,7 +230,7 @@ trait ElasticMeta[T <: Record[T]] extends SlashemMeta[T] {
case _ => {
myClient = Some({
if (useTransport) {
- val settings = ImmutableSettings.settingsBuilder().put("cluster.name",clusterName)
+ val settings = ImmutableSettings.settingsBuilder().put("cluster.name",clusterName).put("client.transport.sniff",true)
val tc = new TransportClient(settings)
serverInetSockets.map(tc.addTransportAddress(_))
tc

0 comments on commit 50f6291

Please sign in to comment.