Renaming to sign_and_send

This commit is contained in:
Dessalines 2020-10-01 12:54:20 -05:00
parent 61f013e4cb
commit 3a24adc57f
2 changed files with 3 additions and 3 deletions

View 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::{ use activitystreams::{
base::{Extends, ExtendsExt}, base::{Extends, ExtendsExt},
object::AsObject, object::AsObject,
@ -77,7 +77,7 @@ impl ActixJob for SendActivityTask {
for to_url in &self.to { for to_url in &self.to {
let mut headers = BTreeMap::<String, String>::new(); let mut headers = BTreeMap::<String, String>::new();
headers.insert("Content-Type".into(), "application/json".into()); headers.insert("Content-Type".into(), "application/json".into());
let result = sign( let result = sign_and_send(
&state.client, &state.client,
headers, headers,
to_url, to_url,

View file

@ -25,7 +25,7 @@ lazy_static! {
} }
/// Signs request headers with the given keypair. /// Signs request headers with the given keypair.
pub async fn sign( pub async fn sign_and_send(
client: &Client, client: &Client,
headers: BTreeMap<String, String>, headers: BTreeMap<String, String>,
url: &Url, url: &Url,