Assert nodeid is bytes, to ease porting.

This commit is contained in:
Itamar Turner-Trauring 2020-09-08 14:10:13 -04:00
parent 6da338a86a
commit 6957540156

View File

@ -52,6 +52,7 @@ class StorageServer(service.MultiService, Referenceable):
service.MultiService.__init__(self)
assert isinstance(nodeid, bytes)
assert len(nodeid) == 20
assert isinstance(nodeid, bytes)
self.my_nodeid = nodeid
self.storedir = storedir
sharedir = os.path.join(storedir, "shares")