Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

import rethinkdb from gopkg.in. it's still v0, so this will change still #54

Merged
merged 1 commit into from
Feb 4, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/adaptor/rethinkdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/compose/transporter/pkg/message"
"github.com/compose/transporter/pkg/pipe"
gorethink "github.com/dancannon/gorethink"
gorethink "gopkg.in/dancannon/gorethink.v0"
)

// Rethinkdb is an adaptor that writes metrics to rethinkdb (http://rethinkdb.com/)
Expand Down Expand Up @@ -128,9 +128,9 @@ func (r *Rethinkdb) setupClient() (*gorethink.Session, error) {
fmt.Printf("Connecting to %s\n", r.uri.Host)
}
client, err := gorethink.Connect(gorethink.ConnectOpts{
Address: r.uri.Host,
MaxIdle: 10,
IdleTimeout: time.Second * 10,
Address: r.uri.Host,
MaxIdle: 10,
Timeout: time.Second * 10,
})
if err != nil {
return nil, fmt.Errorf("unable to connect: %s", err)
Expand Down