update to match codec

This commit is contained in:
Asim Aslam 2019-01-10 09:42:14 +00:00 committed by Vasiliy Tolstov
parent 4776921d4d
commit 0f64485fd7

View File

@ -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(),
}