From da32a48c4361db83204dafdcec95e276ba3c4a2b Mon Sep 17 00:00:00 2001 From: Xynnn007 Date: Tue, 14 Nov 2023 18:03:34 +0800 Subject: [PATCH] AS: fix function name Signed-off-by: Xynnn007 --- attestation-service/attestation-service/src/lib.rs | 2 +- attestation-service/bin/grpc-as/src/server.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/attestation-service/attestation-service/src/lib.rs b/attestation-service/attestation-service/src/lib.rs index 97cc08463..a94cf2b8f 100644 --- a/attestation-service/attestation-service/src/lib.rs +++ b/attestation-service/attestation-service/src/lib.rs @@ -155,7 +155,7 @@ impl AttestationService { } /// Registry a new reference value - pub async fn registry_reference_value(&mut self, message: &str) -> Result<()> { + pub async fn register_reference_value(&mut self, message: &str) -> Result<()> { self.rvps.verify_and_extract(message).await } } diff --git a/attestation-service/bin/grpc-as/src/server.rs b/attestation-service/bin/grpc-as/src/server.rs index f1352e67f..88e9242f0 100644 --- a/attestation-service/bin/grpc-as/src/server.rs +++ b/attestation-service/bin/grpc-as/src/server.rs @@ -133,7 +133,7 @@ impl ReferenceValueProviderService for Arc> { self.write() .await .attestation_service - .registry_reference_value(message) + .register_reference_value(message) .await .map_err(|e| Status::aborted(format!("Register reference value: {e}")))?;