Skip to content

Commit

Permalink
Simplify endpoint creation
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureMarker committed Jul 21, 2020
1 parent fc55f33 commit a363c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autopush-common/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ pub fn make_endpoint(
fernet: &MultiFernet,
) -> Result<String> {
let root = format!("{}/wpush/", endpoint_url);
let mut base = hex::decode(uaid.to_simple().to_string()).chain_err(|| "Error decoding")?;
base.extend(hex::decode(chid.to_simple().to_string()).chain_err(|| "Error decoding")?);
let mut base = uaid.as_bytes().to_vec();
base.extend(chid.as_bytes());

if let Some(k) = key {
let raw_key =
Expand Down

0 comments on commit a363c51

Please sign in to comment.