komrade update!

decryption-error-fix
quadrismegistus 4 years ago
parent 5445ba58a7
commit 7e051393ce

@ -456,9 +456,10 @@ class KomradeX(Caller):
def msg(self,someone,something): def msg(self,someone,something):
return asyncio.run(self.msg_async(someone,something))
def msg_async(self,someone,something):
# find or boot # find or boot
someone = Komrade(someone) someone = Komrade(someone)
self.log(f'found {someone}') self.log(f'found {someone}')
@ -496,7 +497,7 @@ class KomradeX(Caller):
self.log('going to send msg to op?',msg_to_op) self.log('going to send msg to op?',msg_to_op)
# dial operator # dial operator
res=self.ring_ring( res=await self.ring_ring(
msg_to_op, msg_to_op,
route='deliver_msg' route='deliver_msg'
) )
@ -557,7 +558,7 @@ class KomradeX(Caller):
{ {
'data':post_pkg_b 'data':post_pkg_b
}, },
route='post_async' route='post'
) )
self.log('post res from Op <-',res_op) self.log('post res from Op <-',res_op)
return res_op return res_op

@ -64,7 +64,7 @@ class Operator(Keymaker):
'login', 'login',
'deliver_msg', 'deliver_msg',
'introduce', 'introduce',
'post_async', 'deliver_post',
'get_updates' 'get_updates'
] ]

@ -430,7 +430,7 @@ class TheOperator(Operator):
return res return res
def post(self,msg_to_op): def deliver_post(self,msg_to_op):
# This # This
self.log('<--',msg_to_op.msg_d) self.log('<--',msg_to_op.msg_d)
world = Komrade(WORLD_NAME) world = Komrade(WORLD_NAME)

Loading…
Cancel
Save