Skip to content

Commit a201f0d

Browse files
committed
adapt to changes in gix
1 parent 46225c2 commit a201f0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/plumbing/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub fn main() -> Result<()> {
129129
let auto_verbose = !progress && !args.no_verbose;
130130

131131
let should_interrupt = Arc::new(AtomicBool::new(false));
132-
gix::interrupt::init_handler({
132+
gix::interrupt::init_handler(1, {
133133
let should_interrupt = Arc::clone(&should_interrupt);
134134
move || should_interrupt.store(true, Ordering::SeqCst)
135135
})?;

Diff for: src/porcelain/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn main() -> Result<()> {
2020
time::util::local_offset::set_soundness(time::util::local_offset::Soundness::Unsound);
2121
}
2222
let should_interrupt = Arc::new(AtomicBool::new(false));
23-
gix::interrupt::init_handler({
23+
gix::interrupt::init_handler(1, {
2424
let should_interrupt = Arc::clone(&should_interrupt);
2525
move || should_interrupt.store(true, Ordering::SeqCst)
2626
})?;

0 commit comments

Comments
 (0)