mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
Assert nodeid is bytes, to ease porting.
This commit is contained in:
parent
6da338a86a
commit
6957540156
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user