Skip to content

Commit

Permalink
Merge pull request #202 from maxekman/ISSUE-201/redigo-version
Browse files Browse the repository at this point in the history
ISSUE-201 / Use gomodule/redigo instead of garyburd/redigo
  • Loading branch information
maxekman authored Mar 21, 2018
2 parents d026aa3 + 00effb7 commit e1bbbab
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
version = "1.12.49"

[[constraint]]
name = "github.com/garyburd/redigo"
version = "1.6.0"
name = "github.com/gomodule/redigo"
version = "2.0.0"

[[constraint]]
name = "github.com/gorhill/cronexpr"
Expand Down
6 changes: 3 additions & 3 deletions publisher/redis/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"strings"
"time"

"github.com/garyburd/redigo/redis"
"github.com/globalsign/mgo/bson"
"github.com/gomodule/redigo/redis"
"github.com/jpillora/backoff"

eh "github.com/looplab/eventhorizon"
Expand Down Expand Up @@ -188,7 +188,7 @@ func (b *EventPublisher) recv(delay *backoff.Backoff) error {

for {
switch m := pubSubConn.Receive().(type) {
case redis.PMessage:
case redis.Message:
if err := b.handleMessage(m); err != nil {
log.Println("eventpublisher: error publishing:", err)
}
Expand Down Expand Up @@ -216,7 +216,7 @@ func (b *EventPublisher) recv(delay *backoff.Backoff) error {
}
}

func (b *EventPublisher) handleMessage(msg redis.PMessage) error {
func (b *EventPublisher) handleMessage(msg redis.Message) error {
// Manually decode the raw BSON event.
data := bson.Raw{
Kind: 3,
Expand Down

0 comments on commit e1bbbab

Please sign in to comment.