Permalink
Browse files

updated README to address #1

  • Loading branch information...
1 parent d7ad7e1 commit 494bbd292b51619a71951a09ab6fce026970a986 @boj boj committed Jan 6, 2014
Showing with 3 additions and 2 deletions.
  1. +2 −1 README.md
  2. +1 −1 client_test.go
View
3 README.md
@@ -39,13 +39,14 @@ The client is the all encompassing framework of riaken. From there sessions sho
package main
+ import "log"
import "github.com/riaken/riaken-core"
func main() {
// Riak cluster addresses
addrs := []string{"127.0.0.1:8083", "127.0.0.1:8084", "127.0.0.1:8085", "127.0.0.1:8086", "127.0.0.1:8087"}
// Create a client, passing the addresses, and number of connections to maintain per cluster node
- client := NewClient(addrs, 1)
+ client := riaken_core.NewClient(addrs, 1)
// Dial the servers
if err := client.Dial(); err != nil {
log.Fatal(err.Error()) // all nodes are down
View
2 client_test.go
@@ -55,7 +55,7 @@ func Example() {
func dial() *Client {
//addrs := []string{"127.0.0.1:8087"}
addrs := []string{"127.0.0.1:8083", "127.0.0.1:8084", "127.0.0.1:8085", "127.0.0.1:8086", "127.0.0.1:8087"}
- client := NewClient(addrs, 1)
+ client := NewClient(addrs, 5)
//client.Debug(true)
if err := client.Dial(); err != nil {
log.Fatal(err.Error()) // all nodes are down

0 comments on commit 494bbd2

Please sign in to comment.