-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sdk): Remove the
experimental-not-simplified-sliding-sync
feat…
…ure flag. This patch is the second over two patches to change the support of Simplified MSC3575 from a compiler feature flag to a runtime configuration (see previous patch for the first one). First off, this patch removes all uses of the `experimental-not-simplified-sliding-sync` feature flag. Second, this patch uses the `Client::is_simplified_sliding_sync_enabled` method to know whether Simplified MSC3575 `Request`s must be transformed into MSC3575 `Request`s and vice versa for the `Response`s. To achieve that, the `SlidingSync::sync_once` method moves most of its body into a new inner private `send` method that takes a generic for the `Request` because now it can be `http::msc3575::Request` or a `http::simplified_msc3575::Request`. This `send` function has a specific bound for the `Request::IncomingResponse`: `http::Into::<http::simplified_msc3575::Response>`, so that we are sure we can get back a Simplified MSC3575 `Response` in all cases. To make it work in both cases, this patch adds a `From<Response> for Response` implementation in `http::simplified_msc3575`.
- Loading branch information
Showing
6 changed files
with
140 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters