feat: refactoring progress

This commit is contained in:
Swann
2019-07-08 20:05:12 +02:00
parent df5310e1fb
commit 4336ff9836
3 changed files with 60 additions and 33 deletions

View File

@ -62,7 +62,7 @@ class ReplicatedDatablock(object):
key = self.uuid.encode()
socket.send_multipart([])
socket.send_multipart([key,data])
@classmethod
def pull(cls, socket):
@ -71,7 +71,7 @@ class ReplicatedDatablock(object):
- read data from the socket
- reconstruct an instance
"""
pass
uuid, data = socket.recv_multipart(zmq.NOBLOCK)
def store(self, dict, persistent=False):
"""