feat(server): Remove Send + Sync requirement for Body in with_graceful_shutdown
Also expand the single threaded example to use that.
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							7feab2f3db
						
					
				
				
					commit
					1d553e52c6
				
			| @@ -54,7 +54,7 @@ where | ||||
|     IO: AsyncRead + AsyncWrite + Unpin + Send + 'static, | ||||
|     S: MakeServiceRef<IO, Body, ResBody = B>, | ||||
|     S::Error: Into<Box<dyn StdError + Send + Sync>>, | ||||
|     B: HttpBody + Send + Sync + 'static, | ||||
|     B: HttpBody + 'static, | ||||
|     B::Error: Into<Box<dyn StdError + Send + Sync>>, | ||||
|     F: Future<Output = ()>, | ||||
|     E: ConnStreamExec<<S::Service as HttpService<Body>>::Future, B>, | ||||
| @@ -103,7 +103,7 @@ where | ||||
|     I: AsyncRead + AsyncWrite + Unpin + Send + 'static, | ||||
|     S: HttpService<Body>, | ||||
|     E: ConnStreamExec<S::Future, S::ResBody>, | ||||
|     S::ResBody: Send + Sync + 'static, | ||||
|     S::ResBody: 'static, | ||||
|     <S::ResBody as HttpBody>::Error: Into<Box<dyn StdError + Send + Sync>>, | ||||
| { | ||||
|     type Future = | ||||
| @@ -119,7 +119,7 @@ where | ||||
|     S: HttpService<Body>, | ||||
|     S::Error: Into<Box<dyn StdError + Send + Sync>>, | ||||
|     I: AsyncRead + AsyncWrite + Unpin, | ||||
|     S::ResBody: HttpBody + Send + 'static, | ||||
|     S::ResBody: HttpBody + 'static, | ||||
|     <S::ResBody as HttpBody>::Error: Into<Box<dyn StdError + Send + Sync>>, | ||||
|     E: ConnStreamExec<S::Future, S::ResBody>, | ||||
| { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user