Skip to content

Commit

Permalink
dropped go 1.1, added go 1.3 and tip
Browse files Browse the repository at this point in the history
  • Loading branch information
tux21b committed Jul 16, 2014
1 parent 162ac03 commit 8a46f2c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 36 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: go

go:
- 1.1
- 1.2
- 1.3
- tip

script:
- bash integration.sh
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Project Website: http://gocql.github.io/<br>
API documentation: http://godoc.org/github.com/gocql/gocql<br>
Discussions: https://groups.google.com/forum/#!forum/gocql

Supported Versions: Cassandra 1.2, 2.0, 2.1; Go 1.2, 1.3

Installation
------------

Expand All @@ -22,7 +24,7 @@ Installation
Features
--------

* Modern Cassandra client for Cassandra 1.2 and 2.0
* Modern Cassandra client using the native transport
* Automatic type conversations between Cassandra and Go
* Support for all common types including sets, lists and maps
* Custom types can implement a `Marshaler` and `Unmarshaler` interface
Expand Down
13 changes: 13 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,19 @@ func (c *Conn) decodeFrame(f frame, trace Tracer) (rval interface{}, err error)
}
}

func (c *Conn) setKeepalive(d time.Duration) error {
if tc, ok := c.conn.(*net.TCPConn); ok {
err := tc.SetKeepAlivePeriod(d)
if err != nil {
return err
}

return tc.SetKeepAlive(true)
}

return nil
}

type queryInfo struct {
id []byte
args []ColumnInfo
Expand Down
13 changes: 0 additions & 13 deletions conn_go11.go

This file was deleted.

21 changes: 0 additions & 21 deletions conn_go12.go

This file was deleted.

0 comments on commit 8a46f2c

Please sign in to comment.