update to match codec
This commit is contained in:
parent
4776921d4d
commit
0f64485fd7
4
nats.go
4
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(),
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user