Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
avantgardnerio committed Nov 27, 2024
1 parent 4ba005f commit 9744903
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions object_store/src/client/parts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ use parking_lot::Mutex;
pub(crate) struct Parts(Mutex<Vec<MultipartInfo>>);

impl Parts {
/// Record the [`PartId`] for a given index
/// Record the [`MultipartInfo`] for a given index
///
/// Note: calling this method multiple times with the same `part_idx`
/// will result in multiple [`PartId`] in the final output
/// will result in multiple [`MultipartInfo`] in the final output
pub(crate) fn put(&self, part: MultipartInfo) {
self.0.lock().push(part)
}

/// Produce the final list of [`PartId`] ordered by `part_idx`
/// Produce the final list of [`MultipartInfo`] ordered by `part_idx`
///
/// `expected` is the number of parts expected in the final result
pub(crate) fn finish(&self, expected: usize) -> crate::Result<Vec<MultipartInfo>> {
Expand Down

0 comments on commit 9744903

Please sign in to comment.