enable cache for build, closes #8 (#12)

* enable cache for build, closes #8
* goimports
* lint fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-20 15:23:41 +03:00
committed by GitHub
parent 98ba3b2788
commit 199ff66bd4
37 changed files with 62 additions and 47 deletions

View File

@@ -4,6 +4,8 @@ import (
"bytes"
"sync"
"github.com/oxtoacart/bpool"
"github.com/pkg/errors"
"github.com/unistack-org/micro/v3/codec"
raw "github.com/unistack-org/micro/v3/codec/bytes"
"github.com/unistack-org/micro/v3/codec/grpc"
@@ -12,8 +14,6 @@ import (
"github.com/unistack-org/micro/v3/codec/proto"
"github.com/unistack-org/micro/v3/codec/protorpc"
"github.com/unistack-org/micro/v3/transport"
"github.com/oxtoacart/bpool"
"github.com/pkg/errors"
)
type rpcCodec struct {

View File

@@ -4,9 +4,9 @@ import (
"fmt"
"reflect"
"github.com/unistack-org/micro/v3/broker"
"github.com/unistack-org/micro/v3/registry"
"github.com/unistack-org/micro/v3/server"
"github.com/unistack-org/micro/v3/broker"
"github.com/unistack-org/micro/v3/transport"
)
@@ -31,10 +31,10 @@ type subscriber struct {
}
func newMessage(msg transport.Message) *broker.Message {
return &broker.Message{
Header: msg.Header,
Body: msg.Body,
}
return &broker.Message{
Header: msg.Header,
Body: msg.Body,
}
}
func newSubscriber(topic string, sub interface{}, opts ...server.SubscriberOption) server.Subscriber {