浏览代码

Update default cassandra port

Jonathan Rudenberg 13 年之前
父节点
当前提交
49042312d0
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      gocql.go
  2. 2 2
      gocql_test.go

+ 1 - 1
gocql.go

@@ -12,7 +12,7 @@
 //
 // Example Usage:
 //
-//     db, err := sql.Open("gocql", "localhost:8000 keyspace=system")
+//     db, err := sql.Open("gocql", "localhost:9042 keyspace=system")
 //     // ...
 //     rows, err := db.Query("SELECT keyspace_name FROM schema_keyspaces")
 //     // ...

+ 2 - 2
gocql_test.go

@@ -13,7 +13,7 @@ import (
 )
 
 func TestSimple(t *testing.T) {
-	db, err := sql.Open("gocql", "localhost:8000 keyspace=system")
+	db, err := sql.Open("gocql", "localhost:9042 keyspace=system")
 	if err != nil {
 		t.Fatal(err)
 	}
@@ -54,7 +54,7 @@ var pages = []*Page{
 }
 
 func TestWiki(t *testing.T) {
-	db, err := sql.Open("gocql", "localhost:8000 compression=snappy")
+	db, err := sql.Open("gocql", "localhost:9042 compression=snappy")
 	if err != nil {
 		t.Fatal(err)
 	}