11
src/fuser.rs
11
src/fuser.rs
@@ -21,7 +21,6 @@ use parking_lot::{RwLock, RwLockWriteGuard};
|
||||
use crate::config::FuseConfig;
|
||||
|
||||
struct Handle {
|
||||
ino: u64,
|
||||
flags: i32,
|
||||
cursor: i64,
|
||||
}
|
||||
@@ -311,14 +310,7 @@ impl Filesystem for AutheliaFS {
|
||||
let mut handles = self.handles.write();
|
||||
let handle = handles.next_handle();
|
||||
|
||||
handles.handles.insert(
|
||||
handle,
|
||||
Handle {
|
||||
ino,
|
||||
flags,
|
||||
cursor: 0,
|
||||
},
|
||||
);
|
||||
handles.handles.insert(handle, Handle { flags, cursor: 0 });
|
||||
|
||||
drop(handles);
|
||||
|
||||
@@ -556,7 +548,6 @@ impl Filesystem for AutheliaFS {
|
||||
handles.handles.insert(
|
||||
handle,
|
||||
Handle {
|
||||
ino,
|
||||
flags: O_RDONLY,
|
||||
cursor: 0,
|
||||
},
|
||||
|
@@ -12,7 +12,7 @@ use axum::serve;
|
||||
use clap::Parser;
|
||||
use log::info;
|
||||
use log4rs::config::Deserializers;
|
||||
use std::{error::Error, net::SocketAddr};
|
||||
use std::net::SocketAddr;
|
||||
use tokio::net::TcpListener;
|
||||
|
||||
use config::{Args, Config};
|
||||
|
Reference in New Issue
Block a user