From aed4fe32d855be0ac6f0d709d725d6ea08043f11 Mon Sep 17 00:00:00 2001 From: awiouy Date: Mon, 12 Feb 2018 20:13:37 +0100 Subject: [PATCH] core API: SessionInternal --- core/src/session.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/session.rs b/core/src/session.rs index a702f191..cb210a0f 100644 --- a/core/src/session.rs +++ b/core/src/session.rs @@ -24,7 +24,7 @@ struct SessionData { canonical_username: String, } -pub struct SessionInternal { +struct SessionInternal { config: SessionConfig, data: RwLock, @@ -43,7 +43,7 @@ pub struct SessionInternal { static SESSION_COUNTER: AtomicUsize = ATOMIC_USIZE_INIT; #[derive(Clone)] -pub struct Session(pub Arc); +pub struct Session(Arc); pub fn device_id(name: &str) -> String { let mut h = Sha1::new(); @@ -226,7 +226,7 @@ impl Session { } #[derive(Clone)] -pub struct SessionWeak(pub Weak); +pub struct SessionWeak(Weak); impl SessionWeak { fn try_upgrade(&self) -> Option {