Skip to content

Commit

Permalink
chore: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
itsyaasir committed Jun 20, 2024
1 parent b50ab9a commit 6140606
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
1 change: 0 additions & 1 deletion bindings/grpc/proto/domain_linkage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ message ValidateDidResponse {
message ValidateDomainResponse {
string domain = 1;
message LinkedDids {

message ValidDid {
string did = 1;
string credential = 2;
Expand Down
32 changes: 15 additions & 17 deletions bindings/grpc/src/services/domain_linkage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@
use std::collections::HashMap;
use std::error::Error;

use domain_linkage::domain_linkage_server::DomainLinkage;
use domain_linkage::domain_linkage_server::DomainLinkageServer;
use domain_linkage::validate_did_response::Domains;

use crate::services::domain_linkage::domain_linkage::validate_did_response::domains::InvalidDomain;
use crate::services::domain_linkage::domain_linkage::validate_did_response::domains::ValidDomain;
use crate::services::domain_linkage::domain_linkage::validate_domain_response::linked_dids::InvalidDid;
use crate::services::domain_linkage::domain_linkage::validate_domain_response::linked_dids::ValidDid;
use domain_linkage::validate_domain_response::LinkedDids;
use domain_linkage::ValidateDidAgainstDidConfigurationsRequest;
use domain_linkage::ValidateDidRequest;
use domain_linkage::ValidateDidResponse;
use domain_linkage::ValidateDomainAgainstDidConfigurationRequest;
use domain_linkage::ValidateDomainRequest;
use domain_linkage::ValidateDomainResponse;

use _domain_linkage::domain_linkage_server::DomainLinkage;
use _domain_linkage::domain_linkage_server::DomainLinkageServer;
use _domain_linkage::validate_did_response::domains::InvalidDomain;
use _domain_linkage::validate_did_response::domains::ValidDomain;
use _domain_linkage::validate_did_response::Domains;
use _domain_linkage::validate_domain_response::linked_dids::InvalidDid;
use _domain_linkage::validate_domain_response::linked_dids::ValidDid;
use _domain_linkage::validate_domain_response::LinkedDids;
use _domain_linkage::ValidateDidAgainstDidConfigurationsRequest;
use _domain_linkage::ValidateDidRequest;
use _domain_linkage::ValidateDidResponse;
use _domain_linkage::ValidateDomainAgainstDidConfigurationRequest;
use _domain_linkage::ValidateDomainRequest;
use _domain_linkage::ValidateDomainResponse;
use identity_eddsa_verifier::EdDSAJwsVerifier;
use identity_iota::core::FromJson;
use identity_iota::core::Url;
Expand All @@ -41,7 +39,7 @@ use tonic::Status;
use url::Origin;

#[allow(clippy::module_inception)]
mod domain_linkage {
mod _domain_linkage {
tonic::include_proto!("domain_linkage");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/1_advanced/6_domain_linkage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async fn main() -> anyhow::Result<()> {

// The DID should be linked to the following domains.
let domain_1: Url = Url::parse("https://foo.example.com")?;
let domain_2: Url = Url::parse("https://foo.example.com")?;
let domain_2: Url = Url::parse("https://bar.example.com")?;

let mut domains: OrderedSet<Url> = OrderedSet::new();
domains.append(domain_1.clone());
Expand Down

0 comments on commit 6140606

Please sign in to comment.