Skip to content

Commit

Permalink
merge release/0.29 into master
Browse files Browse the repository at this point in the history
* fix: fixed high cpu usage in follow mode on macos (#588)
  • Loading branch information
pamburus authored Dec 13, 2024
2 parents 96349ce + f3a9642 commit 0198f9c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [master, release/*]
pull_request:
branches: ['*']
branches: [master, release/*]

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [".", "crate/encstr"]
[workspace.package]
repository = "https://github.com/pamburus/hl"
authors = ["Pavel Ivanov <[email protected]>"]
version = "0.30.0-alpha.1"
version = "0.30.0-alpha.2"
edition = "2021"
license = "MIT"

Expand Down
4 changes: 2 additions & 2 deletions src/fsmon.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// std imports
use std::path::PathBuf;
use std::{path::PathBuf, time::Duration};

// local imports
use crate::error::Result;
Expand Down Expand Up @@ -124,7 +124,7 @@ mod imp {
watcher.watch()?;

while synced {
let event = if let Some(event) = watcher.poll(None) {
let event = if let Some(event) = watcher.poll(Some(Duration::from_secs(1))) {
event
} else {
continue;
Expand Down

0 comments on commit 0198f9c

Please sign in to comment.