Skip to content

Commit 5f0b4c3

Browse files
committed
all: migrate to gopkg.in/zeromq/goczmq.v4
1 parent 60c9e9e commit 5f0b4c3

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

cxx_zmq4_compat.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"context"
1111
"net"
1212

13-
czmq4 "github.com/zeromq/goczmq"
13+
czmq4 "gopkg.in/zeromq/goczmq.v4"
1414
)
1515

1616
func NewCPair(ctx context.Context, opts ...czmq4.SockOption) Socket {
@@ -145,7 +145,7 @@ func (sck *csocket) SetOption(name string, value interface{}) error {
145145
return nil
146146
case OptionUnsubscribe:
147147
topic := value.(string)
148-
sck.sock.SetUnsubscribe(topic)
148+
sck.sock.SetOption(czmq4.SockSetUnsubscribe(topic))
149149
return nil
150150
default:
151151
panic("unknown set option name [" + name + "]")

go.mod

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module github.com/go-zeromq/zmq4
22

3+
go 1.12
4+
35
require (
4-
github.com/pkg/errors v0.8.0
5-
golang.org/x/net v0.0.0-20180629035331-4cb1c02c05b0
6-
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
6+
github.com/pkg/errors v0.8.1
7+
golang.org/x/sync v0.0.0-20190423024810-112230192c58
78
)

security/plain/plain_cxx_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
"github.com/go-zeromq/zmq4"
1717
"github.com/go-zeromq/zmq4/security/plain"
1818
"github.com/pkg/errors"
19-
czmq4 "github.com/zeromq/goczmq"
2019
"golang.org/x/sync/errgroup"
20+
czmq4 "gopkg.in/zeromq/goczmq.v4"
2121
)
2222

2323
func TestMain(m *testing.M) {

0 commit comments

Comments
 (0)