Convert uses of Box<ServerName> to a ref
This commit is contained in:
parent
7c4e116caa
commit
2ac3ffbb24
7 changed files with 92 additions and 43 deletions
|
@ -302,7 +302,7 @@ impl Sending {
|
|||
|
||||
server_server::send_request(
|
||||
&globals,
|
||||
server.clone(),
|
||||
&*server,
|
||||
send_transaction_message::v1::Request {
|
||||
origin: globals.server_name(),
|
||||
pdus: &pdu_jsons,
|
||||
|
@ -347,7 +347,7 @@ impl Sending {
|
|||
pub async fn send_federation_request<T: OutgoingRequest>(
|
||||
&self,
|
||||
globals: &crate::database::globals::Globals,
|
||||
destination: Box<ServerName>,
|
||||
destination: &ServerName,
|
||||
request: T,
|
||||
) -> Result<T::IncomingResponse>
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue