Skip to content

Commit aa154bb

Browse files
committed
fix notaryInput
1 parent bcedce6 commit aa154bb

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub async fn validate_application_trigger(
190190
pub async fn validate_application_proposal(
191191
info: web::Json<ValidationPullRequestData>,
192192
) -> impl Responder {
193-
let ValidationPullRequestData { pr_number, user_handle, owner, repo } = info.into_inner();
193+
let ValidationPullRequestData { pr_number, user_handle: _, owner, repo } = info.into_inner();
194194
let pr_number = pr_number.trim_matches('"').parse::<u64>();
195195

196196
match pr_number {
@@ -206,7 +206,7 @@ pub async fn validate_application_proposal(
206206
pub async fn validate_application_approval(
207207
info: web::Json<ValidationPullRequestData>,
208208
) -> impl Responder {
209-
let ValidationPullRequestData { pr_number, user_handle, owner, repo } = info.into_inner();
209+
let ValidationPullRequestData { pr_number, user_handle: _, owner, repo } = info.into_inner();
210210
let pr_number = pr_number.trim_matches('"').parse::<u64>();
211211

212212
match pr_number {

fplus-lib/src/base64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::io::Cursor;
22

33
use base64;
44

5-
use crate::core::application::file::{ApplicationFile, ValidVerifierList};
5+
use crate::core::application::file::ApplicationFile;
66

77
pub fn decode(i: &str) -> Option<ApplicationFile> {
88
let mut binding = Cursor::new(i);

fplus-lib/src/core/application/file.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,15 +306,15 @@ pub struct Allocation {
306306
pub struct Notaries(pub Vec<Notary>);
307307

308308
#[derive(Serialize, Deserialize, Debug, Clone)]
309-
pub struct NotaryInput {
309+
pub struct VerifierInput {
310310
pub github_username: String,
311311
pub signing_address: String,
312312
pub created_at: String,
313313
pub message_cid: String,
314314
}
315315

316-
impl From<NotaryInput> for Notary {
317-
fn from(input: NotaryInput) -> Self {
316+
impl From<VerifierInput> for Notary {
317+
fn from(input: VerifierInput) -> Self {
318318
Self {
319319
github_username: input.github_username,
320320
signing_address: input.signing_address,

fplus-lib/src/core/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::{
2020
use fplus_database::database;
2121

2222
use self::application::file::{
23-
AllocationRequest, AllocationRequestType, AppState, ApplicationFile, NotaryInput,
23+
AllocationRequest, AllocationRequestType, AppState, ApplicationFile, VerifierInput,
2424
ValidVerifierList,
2525
};
2626
use rayon::prelude::*;
@@ -40,7 +40,7 @@ pub struct NotaryList(pub Vec<String>);
4040

4141
#[derive(Deserialize, Serialize, Debug)]
4242
pub struct CompleteNewApplicationProposalInfo {
43-
pub signer: NotaryInput,
43+
pub signer: VerifierInput,
4444
pub request_id: String,
4545
pub owner: String,
4646
pub repo: String
@@ -401,7 +401,7 @@ impl LDNApplication {
401401
/// Move application from Proposal to Approved
402402
pub async fn complete_new_application_proposal(
403403
&self,
404-
signer: NotaryInput,
404+
signer: VerifierInput,
405405
request_id: String,
406406
owner: String,
407407
repo: String
@@ -459,7 +459,7 @@ impl LDNApplication {
459459

460460
pub async fn complete_new_application_approval(
461461
&self,
462-
signer: NotaryInput,
462+
signer: VerifierInput,
463463
request_id: String,
464464
owner: String,
465465
repo: String

0 commit comments

Comments
 (0)