From edc38b340cfc4308e7e34488f399a066b4ea0a2b Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 12 Aug 2020 22:40:43 +0200 Subject: [PATCH] federation-api: Update origin field type --- ruma-federation-api/src/backfill/get_backfill/v1.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruma-federation-api/src/backfill/get_backfill/v1.rs b/ruma-federation-api/src/backfill/get_backfill/v1.rs index c871e0ab..abfe1ff6 100644 --- a/ruma-federation-api/src/backfill/get_backfill/v1.rs +++ b/ruma-federation-api/src/backfill/get_backfill/v1.rs @@ -5,7 +5,7 @@ use std::time::SystemTime; use js_int::UInt; use ruma_api::ruma_api; use ruma_events::pdu::Pdu; -use ruma_identifiers::{EventId, RoomId}; +use ruma_identifiers::{EventId, RoomId, ServerName}; ruma_api! { metadata: { @@ -33,7 +33,7 @@ ruma_api! { response: { /// The `server_name` of the homeserver sending this transaction. - pub origin: String, + pub origin: Box, /// POSIX timestamp in milliseconds on originating homeserver when this transaction started. #[serde(with = "ruma_serde::time::ms_since_unix_epoch")] @@ -59,7 +59,7 @@ impl Response { /// * the `server_name` of the homeserver. /// * the timestamp in milliseconds of when this transaction started. /// * the list of persistent updates to rooms. - pub fn new(origin: String, origin_server_ts: SystemTime, pdus: Vec) -> Self { + pub fn new(origin: Box, origin_server_ts: SystemTime, pdus: Vec) -> Self { Self { origin, origin_server_ts, pdus } } }