Bläddra i källkod

Comment on DiscoverHosts config item changed

Ben Frye 11 år sedan
förälder
incheckning
26eb56bab1
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      cluster.go

+ 1 - 1
cluster.go

@@ -28,7 +28,7 @@ type ClusterConfig struct {
 	RetryPolicy     RetryPolicy   // Default retry policy to use for queries (default: 0)
 	SocketKeepalive time.Duration // The keepalive period to use, enabled if > 0 (default: 0)
 	ConnPoolType    NewPoolFunc   // The function used to create the connection pool for the session (default: NewSimplePool)
-	DiscoverHosts   bool          // Whether or not CreateSession should attempt to discover other hosts
+	DiscoverHosts   bool          // If set, gocql will attempt to automatically discover other members of the Cassandra cluster (default: false)
 }
 
 // NewCluster generates a new config for the default cluster implementation.