]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - src/allmydata/interfaces.py
copy the rest of David-Sarah's changes to make my tree match 1.8.0beta
[tahoe-lafs/tahoe-lafs.git] / src / allmydata / interfaces.py
index 3a7fa7fa15d7f77534d1269d7517f0c263686cf2..bf10a35a56b339ffde29afdfc54203443a38b31c 100644 (file)
@@ -15,6 +15,8 @@ URI = StringConstraint(300) # kind of arbitrary
 
 MAX_BUCKETS = 256  # per peer -- zfec offers at most 256 shares per file
 
+DEFAULT_MAX_SEGMENT_SIZE = 128*1024
+
 ShareData = StringConstraint(None)
 URIExtensionData = StringConstraint(1000)
 Number = IntegerConstraint(8) # 2**(8*8) == 16EiB ~= 18e18 ~= 18 exabytes
@@ -24,9 +26,6 @@ WriteEnablerSecret = Hash # used to protect mutable bucket modifications
 LeaseRenewSecret = Hash # used to protect bucket lease renewal requests
 LeaseCancelSecret = Hash # used to protect bucket lease cancellation requests
 
-KiB = 1024
-DEFAULT_MAX_SEGMENT_SIZE = 128*KiB
-
 class RIStubClient(RemoteInterface):
     """Each client publishes a service announcement for a dummy object called
     the StubClient. This object doesn't actually offer any services, but the