Skip to content

Commit

Permalink
switch to golang/snappy
Browse files Browse the repository at this point in the history
  • Loading branch information
jehiah committed Dec 29, 2016
1 parent 6865cb8 commit 15f6305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -12,7 +12,7 @@ env:
- NSQ_DOWNLOAD=nsq-0.3.8.linux-amd64.go1.6.2 GOARCH=amd64
- NSQ_DOWNLOAD=nsq-0.3.8.linux-amd64.go1.6.2 GOARCH=386
install:
- go get github.com/mreiferson/go-snappystream
- go get github.com/golang/snappy
script:
- wget http://bitly-downloads.s3.amazonaws.com/nsq/$NSQ_DOWNLOAD.tar.gz
- tar zxvf $NSQ_DOWNLOAD.tar.gz
Expand Down
6 changes: 3 additions & 3 deletions conn.go
Expand Up @@ -15,7 +15,7 @@ import (
"sync/atomic"
"time"

"github.com/mreiferson/go-snappystream"
"github.com/golang/snappy"
)

// IdentifyResponse represents the metadata
Expand Down Expand Up @@ -427,8 +427,8 @@ func (c *Conn) upgradeSnappy() error {
if c.tlsConn != nil {
conn = c.tlsConn
}
c.r = snappystream.NewReader(conn, snappystream.SkipVerifyChecksum)
c.w = snappystream.NewWriter(conn)
c.r = snappy.NewReader(conn)
c.w = snappy.NewWriter(conn)
frameType, data, err := ReadUnpackedResponse(c)
if err != nil {
return err
Expand Down

0 comments on commit 15f6305

Please sign in to comment.