mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
enable multiple_bound_locations lint
This commit is contained in:
parent
92d9f81a78
commit
eaeb7620d9
5 changed files with 10 additions and 11 deletions
|
|
@ -14,12 +14,12 @@ use crate::{services, utils, Error, Result};
|
|||
/// Only returns None if there is no url specified in the appservice
|
||||
/// registration file
|
||||
#[tracing::instrument(skip(request))]
|
||||
pub(crate) async fn send_request<T: OutgoingRequest>(
|
||||
pub(crate) async fn send_request<T>(
|
||||
registration: Registration,
|
||||
request: T,
|
||||
) -> Result<Option<T::IncomingResponse>>
|
||||
where
|
||||
T: Debug,
|
||||
T: OutgoingRequest + Debug,
|
||||
{
|
||||
let Some(destination) = registration.url else {
|
||||
return Ok(None);
|
||||
|
|
|
|||
|
|
@ -128,12 +128,12 @@ impl FedDest {
|
|||
}
|
||||
|
||||
#[tracing::instrument(skip(request), fields(destination_cache_result))]
|
||||
pub(crate) async fn send_request<T: OutgoingRequest>(
|
||||
pub(crate) async fn send_request<T>(
|
||||
destination: &ServerName,
|
||||
request: T,
|
||||
) -> Result<T::IncomingResponse>
|
||||
where
|
||||
T: Debug,
|
||||
T: OutgoingRequest + Debug,
|
||||
{
|
||||
if !services().globals.allow_federation() {
|
||||
return Err(Error::BadConfig("Federation is disabled."));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue