Remove debug for 'Creating cache'
This commit is contained in:
Vendored
-1
@@ -22,7 +22,6 @@ pub struct Cache<T> {
|
||||
|
||||
impl<T: Disk> Cache<T> {
|
||||
pub fn new(inner: T) -> Self {
|
||||
println!("Creating cache");
|
||||
Cache {
|
||||
inner: inner,
|
||||
cache: LruCache::new(65536) // 32 MB cache
|
||||
|
||||
@@ -48,9 +48,7 @@ fn main() {
|
||||
loop {
|
||||
let mut packet = Packet::default();
|
||||
while socket.read(&mut packet).unwrap() == size_of::<Packet>() {
|
||||
// println!("Read {:?}", packet);
|
||||
scheme.handle(&mut packet);
|
||||
// println!("Write {:?}", packet);
|
||||
socket.write(&packet).unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -26,6 +26,8 @@ impl FileScheme {
|
||||
fn open_inner(&mut self, url: &str, flags: usize) -> Result<Box<Resource>> {
|
||||
let path = url.split(':').nth(1).unwrap_or("").trim_matches('/');
|
||||
|
||||
// println!("Open '{}' {:X}", path, flags);
|
||||
|
||||
let mut nodes = Vec::new();
|
||||
let node_result = self.fs.path_nodes(path, &mut nodes);
|
||||
|
||||
@@ -76,8 +78,6 @@ impl FileScheme {
|
||||
|
||||
impl Scheme for FileScheme {
|
||||
fn open(&mut self, url: &str, flags: usize, _mode: usize) -> Result<usize> {
|
||||
// println!("Open '{}' {:X}", url, flags);
|
||||
|
||||
let resource = try!(self.open_inner(url, flags));
|
||||
|
||||
let id = self.next_id as usize;
|
||||
|
||||
Reference in New Issue
Block a user