mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
Tinker with concurrency with FsSession
This commit is contained in:
parent
817ee31a23
commit
591b9c5f9a
2 changed files with 23 additions and 10 deletions
|
|
@ -27,8 +27,8 @@ pub enum FileItem {
|
|||
},
|
||||
}
|
||||
|
||||
pub struct FsSession<'a> {
|
||||
pub config: &'a SessionConfig,
|
||||
pub struct FsSession {
|
||||
pub config: SessionConfig,
|
||||
|
||||
/// The in-memory files associated with each partition.
|
||||
pub partition_files: HashMap<String, FileItem>,
|
||||
|
|
@ -36,10 +36,10 @@ pub struct FsSession<'a> {
|
|||
watchers: HashMap<String, FileWatcher>,
|
||||
}
|
||||
|
||||
impl<'a> FsSession<'a> {
|
||||
pub fn new(config: &SessionConfig) -> FsSession {
|
||||
impl FsSession {
|
||||
pub fn new(config: SessionConfig) -> FsSession {
|
||||
FsSession {
|
||||
config,
|
||||
config: config,
|
||||
partition_files: HashMap::new(),
|
||||
watchers: HashMap::new(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue