Fix spurious type checking error.

This commit is contained in:
Itamar Turner-Trauring 2021-09-29 14:10:14 -04:00
parent f8604e2394
commit 016d6b4530

View File

@ -274,7 +274,7 @@ class StorageServer(service.MultiService, Referenceable):
} }
return version return version
def allocate_buckets(self, storage_index, def _allocate_buckets(self, storage_index,
renew_secret, cancel_secret, renew_secret, cancel_secret,
sharenums, allocated_size, sharenums, allocated_size,
owner_num=0): owner_num=0):
@ -359,7 +359,7 @@ class StorageServer(service.MultiService, Referenceable):
sharenums, allocated_size, sharenums, allocated_size,
canary, owner_num=0): canary, owner_num=0):
"""Foolscap-specific ``allocate_buckets()`` API.""" """Foolscap-specific ``allocate_buckets()`` API."""
alreadygot, bucketwriters = self.allocate_buckets( alreadygot, bucketwriters = self._allocate_buckets(
storage_index, renew_secret, cancel_secret, sharenums, allocated_size, storage_index, renew_secret, cancel_secret, sharenums, allocated_size,
owner_num=owner_num, owner_num=owner_num,
) )