-
Notifications
You must be signed in to change notification settings - Fork 13
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
Conversation
tmeout for test
add docker_compose storage mod & docker-compose
prover/src/pipeline.rs
Outdated
@@ -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); |
There was a problem hiding this comment.
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?
prover/src/provers/agg_all_prover.rs
Outdated
@@ -50,6 +50,10 @@ impl Prover<AggAllContext> for AggAllProver { | |||
return Ok(()); | |||
} | |||
|
|||
if proof_num < 1 { |
There was a problem hiding this comment.
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.
service/src/storage.rs
Outdated
@@ -0,0 +1,74 @@ | |||
use mysql_async::prelude::*; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
service/src/storage.rs
Outdated
@@ -0,0 +1,74 @@ | |||
use mysql_async::prelude::*; | |||
|
|||
pub struct Storage { |
There was a problem hiding this comment.
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.
No description provided.