예제 #1
0
    def _send_msg(self, message: bin, location: BaseWorker) -> bin:
        """send message to worker location"""
        if self.message_pending_time > 0:
            if self.verbose:
                print(f"pending time of {self.message_pending_time} seconds to send message...")
            sleep(self.message_pending_time)

        return location._recv_msg(message)
예제 #2
0
 def _send_msg(self, message: bin, location: BaseWorker) -> bin:
     return location._recv_msg(message)
예제 #3
0
파일: virtual.py 프로젝트: znbdata/PySyft
    def _send_msg(self, message: bin, location: BaseWorker) -> bin:
        """send message to worker location"""

        return location._recv_msg(message)
예제 #4
0
 def _send_msg(self, message: bin, location: BaseWorker) -> bin:
     print("THIS IS WHERE I AM SENDING THE THING: ")
     print(location)
     print("WHEREAS I AM:")
     print(self)
     return location._recv_msg(message)