Skip to content

Commit

Permalink
chore: remove long running workflow; fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arindas committed Sep 25, 2023
1 parent fcb57b6 commit 8a53076
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/rust-bench.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
name: rust-ci
on:
workflow_dispatch:

push:
branches:
- main
- develop
- 'dev/**'
paths:
- 'src/**'

pull_request:
branches:
- main
Expand Down
4 changes: 2 additions & 2 deletions src/storage/commit_log/segmented_log/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ where
.as_mut()
.ok_or(SegmentedLogError::CacheNotFound)?;

if cache.capacity() <= 0 {
if cache.capacity() == 0 {
return Ok(());
}

Expand Down Expand Up @@ -1335,7 +1335,7 @@ pub(crate) mod test {

assert!(segmented_log
.segments()
.nth(0)
.next()
.unwrap()
.cached_index_records()
.is_some());
Expand Down

0 comments on commit 8a53076

Please sign in to comment.