From 0f64485fd7196469bdbb68ccc22a28508619d951 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 10 Jan 2019 09:42:14 +0000 Subject: [PATCH] update to match codec --- nats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nats.go b/nats.go index 4b2f00d..0e037aa 100644 --- a/nats.go +++ b/nats.go @@ -7,7 +7,7 @@ import ( "sync" "github.com/micro/go-micro/broker" - "github.com/micro/go-micro/broker/codec/json" + "github.com/micro/go-micro/codec/json" "github.com/micro/go-micro/cmd" "github.com/nats-io/go-nats" ) @@ -183,7 +183,7 @@ func (n *nbroker) String() string { func NewBroker(opts ...broker.Option) broker.Broker { options := broker.Options{ // Default codec - Codec: json.NewCodec(), + Codec: json.Marshaler{}, Context: context.Background(), }