fixup for never micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-10-16 12:29:28 +03:00
parent bc66ccb9d3
commit e6f7ceb900
4 changed files with 16 additions and 25 deletions

View File

@@ -1,8 +1,8 @@
package grpc
import (
raw "github.com/unistack-org/micro-codec-bytes"
"github.com/unistack-org/micro/v3/codec"
"github.com/unistack-org/micro-codec-bytes"
)
type rpcRequest struct {
@@ -50,7 +50,7 @@ func (r *rpcRequest) Header() map[string]string {
}
func (r *rpcRequest) Read() ([]byte, error) {
f := &bytes.Frame{}
f := &raw.Frame{}
if err := r.codec.ReadBody(f); err != nil {
return nil, err
}