This commit is contained in:
crusader
2017-10-27 14:24:46 +09:00
parent f22f37a6dc
commit f7cd07b3cc
3 changed files with 2 additions and 6 deletions

View File

@@ -3,7 +3,6 @@ package json
import (
"encoding/json"
"io"
"log"
"git.loafle.net/commons_go/rpc/encode"
"git.loafle.net/commons_go/rpc/protocol"
@@ -86,7 +85,6 @@ func newCodecRequest(r io.Reader, encoder encode.Encoder) (protocol.CodecRequest
req := new(serverRequest)
err := json.NewDecoder(r).Decode(req)
if err == io.ErrUnexpectedEOF || err == io.EOF {
log.Printf("NewRequest err: %v", err)
return nil, err
}
if err != nil {