mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 00:01:25 +00:00
Renaming to sign_and_send
This commit is contained in:
parent
61f013e4cb
commit
3a24adc57f
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue