Minor changes
parent
1e2acd3b29
commit
dc63e1f657
|
@ -194,7 +194,6 @@ pub mod shellexpand {
|
||||||
fn complete(&self, force: bool) -> SmallVec<[String; 128]> {
|
fn complete(&self, force: bool) -> SmallVec<[String; 128]> {
|
||||||
use libc::dirent64;
|
use libc::dirent64;
|
||||||
use nix::fcntl::OFlag;
|
use nix::fcntl::OFlag;
|
||||||
use std::ffi::CString;
|
|
||||||
use std::ffi::OsStr;
|
use std::ffi::OsStr;
|
||||||
use std::os::unix::ffi::OsStrExt;
|
use std::os::unix::ffi::OsStrExt;
|
||||||
use std::os::unix::io::AsRawFd;
|
use std::os::unix::io::AsRawFd;
|
||||||
|
|
|
@ -767,7 +767,6 @@ impl State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ctr != self.context.accounts.len() {
|
if ctr != self.context.accounts.len() {
|
||||||
debug!("unparking");
|
|
||||||
self.timer.thread().unpark();
|
self.timer.thread().unpark();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,6 +253,7 @@ pub struct RateLimit {
|
||||||
pub active: bool,
|
pub active: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//FIXME: tests.
|
||||||
impl RateLimit {
|
impl RateLimit {
|
||||||
pub fn new(reqs: u64, millis: u64) -> Self {
|
pub fn new(reqs: u64, millis: u64) -> Self {
|
||||||
RateLimit {
|
RateLimit {
|
||||||
|
|
Loading…
Reference in New Issue