Skip to content
Snippets Groups Projects
Commit 5e3e4396 authored by fangyincheng's avatar fangyincheng
Browse files

Mod:big pkg ut

parent 4f779d4d
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -88,7 +88,7 @@ func (h *RpcClientHandler) OnMessage(session getty.Session, pkg interface{}) {
logger.Debugf("get rpc heartbeat response{header: %#v, body: %#v}", p.Header, p.Body)
return
}
logger.Debugf("get rpc response{header: %#v, body: %#v}", p.Header, p.Body)
//logger.Debugf("get rpc response{header: %#v, body: %#v}", p.Header, p.Body)
h.conn.updateSession(session)
......
......@@ -19,6 +19,7 @@ package dubbo
import (
"bytes"
"fmt"
"reflect"
)
......@@ -164,6 +165,6 @@ func (p *RpcServerPackageHandler) Write(ss getty.Session, pkg interface{}) error
logger.Warnf("binary.Write(res{%#v}) = err{%#v}", res, perrors.WithStack(err))
return perrors.WithStack(err)
}
fmt.Println("eofefe", buf.Len())
return perrors.WithStack(ss.WriteBytes(buf.Bytes()))
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment