Minor changes

async
Manos Pitsidianakis 2020-01-22 00:04:14 +02:00
parent 1e2acd3b29
commit dc63e1f657
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
3 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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();
} }
} }

View File

@ -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 {