feat: server

This commit is contained in:
Swann Martinez
2019-07-05 18:47:40 +02:00
parent 87480a8ffa
commit a87d3c33ba
3 changed files with 103 additions and 18 deletions

View File

@ -22,7 +22,7 @@ class ReplicatedDataFactory(object):
"""
Register a new replicated datatype implementation
"""
types.append((supported_types, implementation))
self.supported_types.append((dtype, implementation))
def match_type(self,data):
for stypes, implementation in self.supported_types: