Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
f04359cf
Commit
f04359cf
authored
Mar 13, 2025
by
Ryan Olson
Committed by
GitHub
Mar 13, 2025
Browse files
feat: global kv block manager (#45)
parent
530a6be0
Changes
22
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
220 additions
and
1 deletion
+220
-1
lib/runtime/src/utils/stream.rs
lib/runtime/src/utils/stream.rs
+8
-1
lib/runtime/tests/pool.rs
lib/runtime/tests/pool.rs
+212
-0
No files found.
lib/runtime/src/utils/stream.rs
View file @
f04359cf
...
@@ -38,7 +38,14 @@ impl<S: Stream + Unpin> Stream for DeadlineStream<S> {
...
@@ -38,7 +38,14 @@ impl<S: Stream + Unpin> Stream for DeadlineStream<S> {
}
}
// Otherwise, poll the underlying stream
// Otherwise, poll the underlying stream
self
.as_mut
()
.stream
.poll_next_unpin
(
cx
)
let
val
=
self
.as_mut
()
.stream
.poll_next_unpin
(
cx
);
// Log the poll result and return it
match
&
val
{
Poll
::
Ready
(
Some
(
_
))
=>
tracing
::
trace!
(
"DeadlineStream: received item"
),
Poll
::
Ready
(
None
)
=>
tracing
::
trace!
(
"DeadlineStream: underlying stream ended"
),
Poll
::
Pending
=>
tracing
::
trace!
(
"DeadlineStream: waiting for next item"
),
}
val
}
}
}
}
...
...
lib/runtime/tests/pool.rs
0 → 100644
View file @
f04359cf
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment