format go files (gofmt)
This commit is contained in:
6
vendor/github.com/gocql/gocql/control.go
generated
vendored
6
vendor/github.com/gocql/gocql/control.go
generated
vendored
@@ -66,9 +66,9 @@ func (c *controlConn) getSession() *Session {
|
||||
func createControlConn(session *Session) *controlConn {
|
||||
|
||||
control := &controlConn{
|
||||
session: session,
|
||||
quit: make(chan struct{}),
|
||||
retry: &SimpleRetryPolicy{NumRetries: 3},
|
||||
session: session,
|
||||
quit: make(chan struct{}),
|
||||
retry: &SimpleRetryPolicy{NumRetries: 3},
|
||||
}
|
||||
|
||||
control.conn.Store((*connHost)(nil))
|
||||
|
4
vendor/github.com/gocql/gocql/metadata_cassandra.go
generated
vendored
4
vendor/github.com/gocql/gocql/metadata_cassandra.go
generated
vendored
@@ -329,7 +329,7 @@ func compileMetadata(
|
||||
keyspace.Functions[functions[i].Name] = &functions[i]
|
||||
}
|
||||
keyspace.Aggregates = make(map[string]*AggregateMetadata, len(aggregates))
|
||||
for i, _ := range aggregates {
|
||||
for i := range aggregates {
|
||||
aggregates[i].FinalFunc = *keyspace.Functions[aggregates[i].finalFunc]
|
||||
aggregates[i].StateFunc = *keyspace.Functions[aggregates[i].stateFunc]
|
||||
keyspace.Aggregates[aggregates[i].Name] = &aggregates[i]
|
||||
@@ -352,7 +352,7 @@ func compileMetadata(
|
||||
keyspace.UserTypes[types[i].Name] = &types[i]
|
||||
}
|
||||
keyspace.MaterializedViews = make(map[string]*MaterializedViewMetadata, len(materializedViews))
|
||||
for i, _ := range materializedViews {
|
||||
for i := range materializedViews {
|
||||
materializedViews[i].BaseTable = keyspace.Tables[materializedViews[i].baseTableName]
|
||||
keyspace.MaterializedViews[materializedViews[i].Name] = &materializedViews[i]
|
||||
}
|
||||
|
Reference in New Issue
Block a user