Revert "Revert "Reformat imports to a consistent style for imports""

This reverts commit d7377d4794.
This commit is contained in:
Tyera Eulberg
2021-12-16 14:21:32 -07:00
committed by Tyera Eulberg
parent 9fff4aa8b8
commit 9f53f3455a
380 changed files with 6072 additions and 5298 deletions

View File

@@ -36,8 +36,7 @@ fn tune_poh_service_priority(uid: u32) {
None
}
use std::process::Command;
use std::str::from_utf8;
use std::{process::Command, str::from_utf8};
if let Some(pid) = find_pid("solana-validato", "/proc", uid, |dir| {
let mut path = dir.path();
@@ -68,8 +67,7 @@ fn tune_poh_service_priority(uid: u32) {
#[cfg(target_os = "linux")]
fn tune_kernel_udp_buffers_and_vmmap() {
use sysctl::CtlValue::String;
use sysctl::Sysctl;
use sysctl::{CtlValue::String, Sysctl};
fn sysctl_write(name: &str, value: &str) {
if let Ok(ctl) = sysctl::Ctl::new(name) {
info!("Old {} value {:?}", name, ctl.value());