Fix sync Call
This commit is contained in:
parent
787c341044
commit
8e2cba9d09
|
@ -394,7 +394,7 @@ func (serve *Serve) Call(name string, header *network.Header, payload []byte) (r
|
|||
err error
|
||||
}
|
||||
chanRes := make(chan *ChanRes)
|
||||
serve.CallAsync(name, header, []byte("Hello"), func(err error, result []byte) {
|
||||
serve.CallAsync(name, header, payload, func(err error, result []byte) {
|
||||
/*chanErr <- err
|
||||
chanResult <- result*/
|
||||
chanRes <- &ChanRes{
|
||||
|
|
Loading…
Reference in New Issue
Block a user