@@ -159,12 +159,11 @@ func (p *ConnPool) RPC(addr net.Addr, stream_type string, version rpc_stream.Mux
159159 sLog .Printf ("rpc error: getClnt() %v" , err )
160160 return ErrNoClient
161161 }
162- // sLog.Printf("@%p -> RPC(%s, %s, %d, %s: Args: %#v)", clnt_stream, addr, st, version, method, args)
162+ // sLog.Printf("@%p -> RPC(%s, %s, %d, %s: Args: %#v)", clnt_stream, addr, st, version, method, args)
163163 err = clnt_stream .rpc_clnt .Call (method , args , reply )
164164 if err != nil {
165165 p .Shutdown (clnt_stream )
166166 sLog .Printf ("error on Call(): %v" , err )
167- err = ErrCallFailed
168167 }
169168 clnt_stream .Release ()
170169 return err
@@ -174,12 +173,7 @@ func (p *ConnPool) RPC(addr net.Addr, stream_type string, version rpc_stream.Mux
174173func (p * ConnPool ) Call (addr net.Addr , stream_type string , version rpc_stream.MuxVersion ,
175174 method string , args interface {}, reply interface {}) error {
176175
177- call , clnt_stream := p .Go (addr , stream_type , version , method , args , reply , nil )
178- call = <- call .Done
179- if clnt_stream != nil {
180- clnt_stream .Release ()
181- }
182- return call .Error
176+ return p .RPC (addr , stream_type , version , method , args , reply )
183177}
184178
185179// Go is used to make an RPC Go call to a remote host
0 commit comments