Browse Source

Update default cassandra port

Jonathan Rudenberg 13 năm trước cách đây
mục cha
commit
49042312d0
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  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)
 	}