Browse Source

Fixed ambiguous DiscoverHosts comment.

Ben Frye 11 năm trước cách đây
mục cha
commit
31ffe52d13
2 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 7 0
      .gitignore
  2. 1 1
      cluster.go

+ 7 - 0
.gitignore

@@ -0,0 +1,7 @@
+.idea/encodings.xml
+.idea/gocql.iml
+.idea/misc.xml
+.idea/modules.xml
+.idea/scopes/scope_settings.xml
+.idea/vcs.xml
+.idea/workspace.xml

+ 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 fill out
+	DiscoverHosts   bool          // Whether or not CreateSession should attempt to discover other hosts
 }
 
 // NewCluster generates a new config for the default cluster implementation.