]> Untitled Git - lemmy.git/commitdiff
Renaming to sign_and_send
authorDessalines <tyhou13@gmx.com>
Thu, 1 Oct 2020 17:54:20 +0000 (12:54 -0500)
committerDessalines <tyhou13@gmx.com>
Thu, 1 Oct 2020 17:54:20 +0000 (12:54 -0500)
lemmy_apub/src/activity_queue.rs
lemmy_apub/src/extensions/signatures.rs

index ece782c5d29cecdd0fddec91173dfd9bf877d537..ca026332032ce7aaba776bc0bdb36730ca072940 100644 (file)
@@ -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::<String, String>::new();
         headers.insert("Content-Type".into(), "application/json".into());
-        let result = sign(
+        let result = sign_and_send(
           &state.client,
           headers,
           to_url,
index 452b60c665ed7457f237cd79f4498babee3755e5..cdcb707a68aac3dfe91504925b23a3bf46b8aa0b 100644 (file)
@@ -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<String, String>,
   url: &Url,