Convert uses of Box<ServerName> to a ref

This commit is contained in:
Devin Ragotzy 2021-01-14 14:39:56 -05:00
parent 7c4e116caa
commit 2ac3ffbb24
7 changed files with 92 additions and 43 deletions

View file

@ -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