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

Commit

Permalink
Merge pull request #85 from compose/rethink-constraint
Browse files Browse the repository at this point in the history
ensure we're at version >=2.0 of rethink for this driver
  • Loading branch information
nstott committed Jul 3, 2015
2 parents 08846f2 + 4a6fb4e commit ffdd226
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/adaptor/rethinkdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,9 @@ func NewRethinkdb(p *pipe.Pipe, path string, extra Config) (StopStartListener, e
}
r.client.Use(r.database)

if r.tail {
constraint, _ := version.NewConstraint(">= 1.16")
if err := r.assertServerVersion(constraint); err != nil {
return r, err
}
constraint, _ := version.NewConstraint(">= 2.0")
if err := r.assertServerVersion(constraint); err != nil {
return r, err
}

return r, nil
Expand Down

0 comments on commit ffdd226

Please sign in to comment.