Skip to content

Commit

Permalink
Corrects all typos in the cluster.go file
Browse files Browse the repository at this point in the history
  • Loading branch information
bx2 committed Aug 16, 2016
1 parent ce4bcb5 commit 71a7d63
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// PoolConfig configures the connection pool used by the driver, it defaults to
// using a round robbin host selection policy and a round robbin connection selection
// using a round-robin host selection policy and a round-robin connection selection
// policy for each host.
type PoolConfig struct {
// HostSelectionPolicy sets the policy for selecting which host to use for a
Expand All @@ -23,9 +23,9 @@ func (p PoolConfig) buildPool(session *Session) *policyConnPool {
}

type DiscoveryConfig struct {
// If not empty will filter all discoverred hosts to a single Data Centre (default: "")
// If not empty will filter all discovered hosts to a single Data Centre (default: "")
DcFilter string
// If not empty will filter all discoverred hosts to a single Rack (default: "")
// If not empty will filter all discovered hosts to a single Rack (default: "")
RackFilter string
// ignored
Sleep time.Duration
Expand All @@ -44,8 +44,8 @@ func (d DiscoveryConfig) matchFilter(host *HostInfo) bool {
}

// ClusterConfig is a struct to configure the default cluster implementation
// of gocoql. It has a varity of attributes that can be used to modify the
// behavior to fit the most common use cases. Applications that requre a
// of gocoql. It has a variety of attributes that can be used to modify the
// behavior to fit the most common use cases. Applications that require a
// different setup must implement their own cluster.
type ClusterConfig struct {
Hosts []string // addresses for the initial connections
Expand Down Expand Up @@ -79,7 +79,7 @@ type ClusterConfig struct {
// receiving a schema change frame. (deault: 60s)
MaxWaitSchemaAgreement time.Duration

// HostFilter will filter all incoming events for host, any which dont pass
// HostFilter will filter all incoming events for host, any which don't pass
// the filter will be ignored. If set will take precedence over any options set
// via Discovery
HostFilter HostFilter
Expand Down Expand Up @@ -113,7 +113,7 @@ type ClusterConfig struct {
// DisableSkipMetadata will override the internal result metadata cache so that the driver does not
// send skip_metadata for queries, this means that the result will always contain
// the metadata to parse the rows and will not reuse the metadata from the prepared
// staement.
// statement.
//
// See https://issues.apache.org/jira/browse/CASSANDRA-10786
DisableSkipMetadata bool
Expand Down

0 comments on commit 71a7d63

Please sign in to comment.