Skip to content
Snippets Groups Projects
Commit 9eeebee5 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

maybe wait is protected or used elsewhere?

parent 54366fb2
Branches
Tags
1 merge request!701RPC Module
...@@ -39,9 +39,9 @@ type RPCResponse interface { ...@@ -39,9 +39,9 @@ type RPCResponse interface {
// RPC will call respFn 3 times: sent, round finished, and // RPC will call respFn 3 times: sent, round finished, and
// response received. // response received.
Callback(cbs RPCResponseCallbacks) RPCResponse Callback(cbs RPCResponseCallbacks) RPCResponse
// Wait waits until the response is complete returns the final // Await waits until the response is complete returns the final
// response bytes // response bytes
Wait() ([]byte, error) Await() []byte
} }
// RPCServer is the interface for the RPC server, users should // RPCServer is the interface for the RPC server, users should
...@@ -101,8 +101,8 @@ func (r *rpcResponse) Callback(cbs RPCResponseCallbacks) RPCResponse { ...@@ -101,8 +101,8 @@ func (r *rpcResponse) Callback(cbs RPCResponseCallbacks) RPCResponse {
return r return r
} }
func (r *rpcResponse) Wait() ([]byte, error) { func (r *rpcResponse) Await() []byte {
return r.response.Wait(), nil return r.response.Wait()
} }
// NewRPCServer returns a new RPC server with the specified // NewRPCServer returns a new RPC server with the specified
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment