Skip to content

Commit e91b4f4

Browse files
committed
delete blockchain threshold retrieval twice in process_allocator_file
1 parent 0a502e4 commit e91b4f4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

fplus-http-server/src/router/allocator.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,14 @@ pub async fn create_from_json(file: web::Json<ChangedAllocator>) -> actix_web::R
4747
};
4848
let owner = model.owner.clone().unwrap_or_default().to_string();
4949
let repo = model.repo.clone().unwrap_or_default().to_string();
50-
51-
let blockchain_threshold =
52-
match get_multisig_threshold_for_actor(&model.pathway_addresses.msig).await {
53-
Ok(threshold) => Some(threshold as i32),
54-
Err(_) => None,
55-
};
5650

5751
let allocator_model = match allocators_db::create_or_update_allocator(
5852
owner.clone(),
5953
repo.clone(),
6054
None,
6155
Some(model.pathway_addresses.msig),
6256
verifiers_gh_handles,
63-
blockchain_threshold
57+
model.multisig_threshold
6458
).await {
6559
Ok(allocator_model) => allocator_model,
6660
Err(e) => return Ok(HttpResponse::BadRequest().body(e.to_string())),

0 commit comments

Comments
 (0)