Skip to content
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

add docker-compose & add storage #16

Closed
wants to merge 33 commits into from
Closed

Conversation

xander42280
Copy link
Contributor

No description provided.

README.md Outdated Show resolved Hide resolved
@@ -10,7 +10,7 @@ pub struct Pipeline {
_mutex: Mutex<usize>,
}

static PIPELINE_MUTEX: Mutex<usize> = Mutex::new(0);
pub static PIPELINE_MUTEX: Mutex<usize> = Mutex::new(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not expose this to public?

@@ -50,6 +50,10 @@ impl Prover<AggAllContext> for AggAllProver {
return Ok(());
}

if proof_num < 1 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is exact as same as L49-51.

@@ -0,0 +1,74 @@
use mysql_async::prelude::*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use sqlx to support different storage backends, and the sqlx also provides a friendly way to track database changes. https://docs.rs/sqlx/latest/sqlx/macro.migrate.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@@ -0,0 +1,74 @@
use mysql_async::prelude::*;

pub struct Storage {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably conflicts with the Storage for S3 and NFS. We can use Database here.

@xander42280 xander42280 closed this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants