Convert uses of Box<ServerName> to a ref
This commit is contained in:
parent
d108a735a4
commit
52392628e9
7 changed files with 92 additions and 43 deletions
|
@ -303,7 +303,7 @@ impl Sending {
|
|||
|
||||
server_server::send_request(
|
||||
&globals,
|
||||
server.clone(),
|
||||
&*server,
|
||||
send_transaction_message::v1::Request {
|
||||
origin: globals.server_name(),
|
||||
pdus: &pdu_jsons,
|
||||
|
@ -348,7 +348,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