summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-01-04 00:59:12 -0600
committerAlejandro Soto <alejandro@34project.org>2022-01-04 00:59:12 -0600
commitb5c8846482d5309fac92c7ab94d4f53690b201b4 (patch)
tree69d7024af019f3626fbe658c0ca159b65ca47dc3 /src
parent30a119364b8cf0bb26046232a7d8862c6afa2580 (diff)
Remove Session::proto_minor
Diffstat (limited to '')
-rw-r--r--src/fuse/session.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/fuse/session.rs b/src/fuse/session.rs
index 94d2fd9..d7b6501 100644
--- a/src/fuse/session.rs
+++ b/src/fuse/session.rs
@@ -41,7 +41,6 @@ pub struct Session {
interrupt_tx: broadcast::Sender<u64>,
buffers: Mutex<Vec<Buffer>>,
buffer_semaphore: Arc<Semaphore>,
- proto_minor: u32,
buffer_pages: usize,
}
@@ -138,12 +137,7 @@ impl Session {
use std::cmp::Ordering;
let supported = match body.major.cmp(&proto::MAJOR_VERSION) {
Ordering::Less => false,
-
- Ordering::Equal => {
- self.proto_minor = body.minor;
- self.proto_minor >= proto::REQUIRED_MINOR_VERSION
- }
-
+ Ordering::Equal => body.minor >= proto::REQUIRED_MINOR_VERSION,
Ordering::Greater => {
let tail = [bytes_of(&proto::MAJOR_VERSION)];
self.ok(header.unique, OutputChain::tail(&tail))?;
@@ -358,7 +352,6 @@ impl Start {
interrupt_tx,
buffers: Mutex::new(buffers),
buffer_semaphore: Arc::new(Semaphore::new(buffer_count)),
- proto_minor: 0, // Set by Session::do_handshake()
buffer_pages,
};