superfluous logging
This commit is contained in:
parent
71d717a06d
commit
d606d00f35
@ -1,7 +1,6 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"log"
|
||||
"sync"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
@ -35,12 +34,7 @@ func (r *rpcStream) Send(msg interface{}) error {
|
||||
Seq: r.seq,
|
||||
}
|
||||
|
||||
err := r.codec.WriteResponse(&resp, msg, false)
|
||||
if err != nil {
|
||||
log.Println("rpc: writing response:", err)
|
||||
}
|
||||
|
||||
return err
|
||||
return r.codec.WriteResponse(&resp, msg, false)
|
||||
}
|
||||
|
||||
func (r *rpcStream) Recv(msg interface{}) error {
|
||||
@ -57,12 +51,7 @@ func (r *rpcStream) Recv(msg interface{}) error {
|
||||
|
||||
// we need to stay up to date with sequence numbers
|
||||
r.seq = req.Seq
|
||||
|
||||
if err := r.codec.ReadRequestBody(msg); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return r.codec.ReadRequestBody(msg)
|
||||
}
|
||||
|
||||
func (r *rpcStream) Error() error {
|
||||
|
@ -210,9 +210,6 @@ func (server *server) sendResponse(sending *sync.Mutex, req *request, reply inte
|
||||
resp.Seq = req.Seq
|
||||
sending.Lock()
|
||||
err = codec.WriteResponse(resp, reply, last)
|
||||
if err != nil {
|
||||
log.Println("rpc: writing response:", err)
|
||||
}
|
||||
sending.Unlock()
|
||||
server.freeResponse(resp)
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user