mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
rename requestHeader
This commit is contained in:
parent
c9963cb870
commit
216dbb771a
@ -385,7 +385,7 @@ func (router *router) freeResponse(resp *response) {
|
||||
}
|
||||
|
||||
func (router *router) readRequest(codec serverCodec) (service *service, mtype *methodType, req *request, argv, replyv reflect.Value, keepReading bool, err error) {
|
||||
service, mtype, req, keepReading, err = router.readRequestHeader(codec)
|
||||
service, mtype, req, keepReading, err = router.readHeader(codec)
|
||||
if err != nil {
|
||||
if !keepReading {
|
||||
return
|
||||
@ -422,7 +422,7 @@ func (router *router) readRequest(codec serverCodec) (service *service, mtype *m
|
||||
return
|
||||
}
|
||||
|
||||
func (router *router) readRequestHeader(codec serverCodec) (service *service, mtype *methodType, req *request, keepReading bool, err error) {
|
||||
func (router *router) readHeader(codec serverCodec) (service *service, mtype *methodType, req *request, keepReading bool, err error) {
|
||||
// Grab the request header.
|
||||
req = router.getRequest()
|
||||
err = codec.ReadHeader(req, true)
|
||||
|
Loading…
Reference in New Issue
Block a user