From 3a24adc57fa5e215947a4e14273c0fb11a390a11 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 1 Oct 2020 12:54:20 -0500 Subject: [PATCH] Renaming to sign_and_send --- lemmy_apub/src/activity_queue.rs | 4 ++-- lemmy_apub/src/extensions/signatures.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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, -- 2.44.1