-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Architecture review #42
Comments
Some key points:
|
Try https://docs.rs/tokio/latest/tokio/task/fn.spawn_blocking.html?
Setup a mock server? Abstract away your IO and use a memory filesystem? If I were to architect this, I may end up with a message passing system because I learned a bit of [akka[(https://akka.io/) a decade ago 😂 |
I would to this by saying that currently function that
|
Also some of the things I would also recommend researching:
|
I am happy to help out with project |
I am interested which options are you considering using?
|
I'm being quite slow with my PR, but definitely will look to help more in some ends |
I tried migrating to futures stream, but got stuck with multithereaded datasharing |
Yes, so the
do you happen to have a branch lying around, or remember which packages caused this conflict? |
Just saving for myself, to reproduce the cache misses: diff --git a/crates/registry/src/lib.rs b/crates/registry/src/lib.rs
index a955f0a..59a1331 100644
--- a/crates/registry/src/lib.rs
+++ b/crates/registry/src/lib.rs
@@ -63,8 +63,10 @@ impl RegistryManager {
pub async fn get_package(&self, name: &str) -> Result<&Package, RegistryError> {
if let Some(package) = &self.cache.get(name) {
+ println!("cache hit: {}", package.name);
return Ok(package);
}
+ println!("cache miss: {name}");
let package: Package = self
.client an example is the |
@steveklabnik This PR removes package_manager crate and moves it to |
in #33, @anonrig mentioned not being happy with how the architecture is evolving here.
I'm gonna try and take a look and see what I think, but if you have anything to elaborate on what's bugging you, that's helpful.
The text was updated successfully, but these errors were encountered: