Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #63 from ustulation/Fixes-62
Browse files Browse the repository at this point in the history
Fixes #62
  • Loading branch information
hitman401 committed Nov 30, 2015
2 parents 8c4158c + e2ffa52 commit e4552db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dns_operations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl DnsOperations {
Err(error) => return Err(error),
};

let (_, dns_record) = try!(self.get_housing_sturctured_data_and_dns_record(long_name, data_decryption_keys));
let (_, dns_record) = try!(self.get_housing_structured_data_and_dns_record(long_name, data_decryption_keys));
Ok(dns_record.services.keys().map(|a| a.clone()).collect())
}

Expand All @@ -161,7 +161,7 @@ impl DnsOperations {
Err(error) => return Err(error),
};

let (_, dns_record) = try!(self.get_housing_sturctured_data_and_dns_record(long_name, data_decryption_keys));
let (_, dns_record) = try!(self.get_housing_structured_data_and_dns_record(long_name, data_decryption_keys));
dns_record.services.get(service_name).map(|v| v.clone()).ok_or(::errors::DnsError::ServiceNotFound)
}

Expand Down Expand Up @@ -202,7 +202,7 @@ impl DnsOperations {
let _ = try!(self.find_dns_record(long_name));

let is_add_service = service.1.is_some();
let (prev_struct_data, mut dns_record) = try!(self.get_housing_sturctured_data_and_dns_record(long_name,
let (prev_struct_data, mut dns_record) = try!(self.get_housing_structured_data_and_dns_record(long_name,
data_encryption_decryption_keys));

if !is_add_service && !dns_record.services.contains_key(&service.0) {
Expand Down Expand Up @@ -230,7 +230,7 @@ impl DnsOperations {
}
}

fn get_housing_sturctured_data_and_dns_record(&self,
fn get_housing_structured_data_and_dns_record(&self,
long_name : &String,
data_decryption_keys: Option<(&::sodiumoxide::crypto::box_::PublicKey,
&::sodiumoxide::crypto::box_::SecretKey,
Expand Down

0 comments on commit e4552db

Please sign in to comment.