update for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-07-31 15:10:59 +03:00
parent 6697ccddf2
commit acfab7e10c
4 changed files with 119 additions and 39 deletions

View File

@@ -19,7 +19,7 @@ func (w *wrapStream) Write(d []byte) (int, error) {
func (w *wrapStream) Read(d []byte) (int, error) {
m := &codec.Frame{}
err := w.ClientStream.RecvMsg(m)
d = m.Data
copy(d, m.Data)
return len(d), err
}