Commit 8358ee7
authored
Remove Future
The function Future bounds are slightly too restrictive. Namely:
```
<L::Service as Service<R>>::Future: Send + Sync + 'static,
```
The `BoxCloneSyncService` and `BoxCloneSyncServiceLayer` require:
```
S::Future: Send + 'static,
<L::Service as Service<T>>::Future: Send + 'static,
```
Removing the `Sync` bound from the helper function:
- Makes the helper function more useful (where futures are not `Sync`)
- Is backwards compatible (loosening trait bound)Sync bound from ServiceBuilder::boxed_clone_sync() (#851)1 parent 35188ec commit 8358ee7
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
| 848 | + | |
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
| |||
0 commit comments