Skip to content

Commit d1c88a2

Browse files
rename the config attribute for the max daily proofs
1 parent 0a143ac commit d1c88a2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

aggregation_mode/batcher/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct Config {
88
pub db_connection_url: String,
99
pub eth_rpc_url: String,
1010
pub payment_service_address: String,
11-
pub max_proofs_per_day: i64,
11+
pub max_daily_proofs_per_user: i64,
1212
}
1313

1414
impl Config {

aggregation_mode/batcher/src/server/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl BatcherServer {
111111
.json(AppResponse::new_unsucessfull("Internal server error", 500));
112112
};
113113

114-
if daily_tasks_by_address >= state.config.max_proofs_per_day {
114+
if daily_tasks_by_address >= state.config.max_daily_proofs_per_user {
115115
return HttpResponse::InternalServerError().json(AppResponse::new_unsucessfull(
116116
"Request denied: Query limit exceeded.",
117117
400,

config-files/config-agg-mode-batcher-ethereum-package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ port: 8089
22
db_connection_url: "postgres://postgres:postgres@localhost:5435/"
33
eth_rpc_url: "http://localhost:8545"
44
payment_service_address: "0x922D6956C99E12DFeB3224DEA977D0939758A1Fe"
5-
max_proofs_per_day: 32
5+
max_daily_proofs_per_user: 32

config-files/config-agg-mode-batcher.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ port: 8089
22
db_connection_url: "postgres://postgres:postgres@localhost:5435/"
33
eth_rpc_url: "http://localhost:8545"
44
payment_service_address: "0x922D6956C99E12DFeB3224DEA977D0939758A1Fe"
5-
max_proofs_per_day: 4
5+
max_daily_proofs_per_user: 4

0 commit comments

Comments
 (0)