Skip to content

Commit df5a283

Browse files
committed
style(repos): simplify blob semaphore permit assertion for clippy
Use strict less-than comparison to satisfy clippy::int_plus_one lint. Refs #407
1 parent c566455 commit df5a283

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎crates/gitlawb-node/src/api/repos.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4013,7 +4013,7 @@ mod tests {
40134013
)
40144014
.await;
40154015
assert_eq!(response.status(), StatusCode::OK);
4016-
assert!(state.git_blob_semaphore.available_permits() <= MAX_CONCURRENT_BLOB_READS - 1);
4016+
assert!(state.git_blob_semaphore.available_permits() < MAX_CONCURRENT_BLOB_READS);
40174017
// Keep the body alive without ever polling it; the timer must run anyway.
40184018
tokio::time::timeout(std::time::Duration::from_secs(5), async {
40194019
while state.git_blob_semaphore.available_permits() != MAX_CONCURRENT_BLOB_READS {

0 commit comments

Comments
 (0)