Changeset af845a4 in trunk
- Timestamp:
- 2023-04-13T13:38:33Z (2 years ago)
- Branches:
- master
- Children:
- 4befcac, d05b578
- Parents:
- 33ab0ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/storage/http_client.py ¶
r33ab0ce raf845a4 659 659 async def create( 660 660 self, 661 storage_index ,662 share_numbers ,663 allocated_size ,664 upload_secret ,665 lease_renew_secret ,666 lease_cancel_secret ,667 ) : # type: (bytes, set[int], int, bytes, bytes, bytes) -> Deferred[ImmutableCreateResult]661 storage_index: bytes, 662 share_numbers: set[int], 663 allocated_size: int, 664 upload_secret: bytes, 665 lease_renew_secret: bytes, 666 lease_cancel_secret: bytes, 667 ) -> ImmutableCreateResult: 668 668 """ 669 669 Create a new storage index for an immutable. … … 726 726 @async_to_deferred 727 727 async def write_share_chunk( 728 self, storage_index, share_number, upload_secret, offset, data 729 ): # type: (bytes, int, bytes, int, bytes) -> Deferred[UploadProgress] 728 self, 729 storage_index: bytes, 730 share_number: int, 731 upload_secret: bytes, 732 offset: int, 733 data: bytes, 734 ) -> UploadProgress: 730 735 """ 731 736 Upload a chunk of data for a specific share. … … 791 796 792 797 @async_to_deferred 793 async def list_shares(self, storage_index: bytes) -> Deferred[set[int]]:798 async def list_shares(self, storage_index: bytes) -> set[int]: 794 799 """ 795 800 Return the set of shares for a given storage index.
Note: See TracChangeset
for help on using the changeset viewer.