Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
redoxfs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ashton Kemerling
redoxfs
Commits
43163267
Commit
43163267
authored
8 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Remove debug for 'Creating cache'
parent
b6d49e2f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scheme/cache/mod.rs
+0
-1
0 additions, 1 deletion
scheme/cache/mod.rs
scheme/main.rs
+0
-2
0 additions, 2 deletions
scheme/main.rs
scheme/scheme.rs
+2
-2
2 additions, 2 deletions
scheme/scheme.rs
with
2 additions
and
5 deletions
scheme/cache/mod.rs
+
0
−
1
View file @
43163267
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
scheme/main.rs
+
0
−
2
View file @
43163267
...
...
@@ -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
();
}
}
...
...
This diff is collapsed.
Click to expand it.
scheme/scheme.rs
+
2
−
2
View file @
43163267
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment