From: Dessalines Date: Thu, 1 Oct 2020 17:54:20 +0000 (-0500) Subject: Renaming to sign_and_send X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/hacktivis.me/static/%7Bpost.url%7D?a=commitdiff_plain;h=3a24adc57fa5e215947a4e14273c0fb11a390a11;p=lemmy.git Renaming to sign_and_send --- diff --git a/lemmy_apub/src/activity_queue.rs b/lemmy_apub/src/activity_queue.rs index ece782c5..ca026332 100644 --- a/lemmy_apub/src/activity_queue.rs +++ b/lemmy_apub/src/activity_queue.rs @@ -1,4 +1,4 @@ -use crate::{check_is_apub_id_valid, extensions::signatures::sign, ActorType}; +use crate::{check_is_apub_id_valid, extensions::signatures::sign_and_send, ActorType}; use activitystreams::{ base::{Extends, ExtendsExt}, object::AsObject, @@ -77,7 +77,7 @@ impl ActixJob for SendActivityTask { for to_url in &self.to { let mut headers = BTreeMap::::new(); headers.insert("Content-Type".into(), "application/json".into()); - let result = sign( + let result = sign_and_send( &state.client, headers, to_url, diff --git a/lemmy_apub/src/extensions/signatures.rs b/lemmy_apub/src/extensions/signatures.rs index 452b60c6..cdcb707a 100644 --- a/lemmy_apub/src/extensions/signatures.rs +++ b/lemmy_apub/src/extensions/signatures.rs @@ -25,7 +25,7 @@ lazy_static! { } /// Signs request headers with the given keypair. -pub async fn sign( +pub async fn sign_and_send( client: &Client, headers: BTreeMap, url: &Url,