jiacai2050 commented on code in PR #1540:
URL: https://github.com/apache/horaedb/pull/1540#discussion_r1669785134


##########
src/components/partitioned_lock/src/lib.rs:
##########
@@ -36,20 +36,33 @@ impl<T, B> PartitionedRwLock<T, B>
 where
     B: BuildHasher,
 {
-    pub fn try_new<F, E>(init_fn: F, partition_bit: usize, hash_builder: B) -> 
Result<Self, E>
+    /// the old way to new a partitioned lock, retained for Compatibility
+    /// the capactity of partition is 2^partition_bit_Len

Review Comment:
   ```suggestion
   /// Init capacity with `2^bit_len`
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to