forked from goodboy/tractor
Only accept asyncfunc response type
parent
1f1619c730
commit
89ce1a63e4
|
@ -182,7 +182,7 @@ class Portal:
|
|||
first_msg = await recv_chan.receive()
|
||||
functype = first_msg.get('functype')
|
||||
|
||||
if functype == 'function' or functype == 'asyncfunction':
|
||||
if functype == 'asyncfunc':
|
||||
resp_type = 'return'
|
||||
elif functype == 'asyncgen':
|
||||
resp_type = 'yield'
|
||||
|
|
Loading…
Reference in New Issue