Bump Rocket to current HEAD
This commit is contained in:
		
							parent
							
								
									1a940b6e05
								
							
						
					
					
						commit
						f4039902d8
					
				
					 4 changed files with 401 additions and 354 deletions
				
			
		
							
								
								
									
										745
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										745
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							|  | @ -14,7 +14,7 @@ edition = "2018" | |||
| [dependencies] | ||||
| # Used to handle requests | ||||
| # TODO: This can become optional as soon as proper configs are supported | ||||
| rocket = { git = "https://github.com/SergioBenitez/Rocket.git", rev = "1f1f44f336e5a172361fc1860461bb03667b1ed2", features = ["tls"] } # Used to handle requests | ||||
| rocket = { git = "https://github.com/SergioBenitez/Rocket.git", rev = "93e62c86eddf7cc9a7fc40b044182f83f0d7d92a", features = ["tls"] } # Used to handle requests | ||||
| #rocket = { git = "https://github.com/timokoesters/Rocket.git", branch = "empty_parameters", default-features = false, features = ["tls"] } | ||||
| 
 | ||||
| # Used for matrix spec type definitions and helpers | ||||
|  | @ -28,7 +28,7 @@ state-res = { git = "https://github.com/ruma/state-res", branch = "timo-spec-com | |||
| #state-res = { path = "../state-res", features = ["unstable-pre-spec", "gen-eventid"] } | ||||
| 
 | ||||
| # Used for long polling and federation sender, should be the same as rocket::tokio | ||||
| tokio = { version = "0.2.23" } | ||||
| tokio = { version = "1.2.0" } | ||||
| # Used for storing data permanently | ||||
| sled = { version = "0.34.6", default-features = false } | ||||
| # Used for emitting log entries | ||||
|  |  | |||
|  | @ -698,7 +698,8 @@ pub async fn sync_events_route( | |||
|         if duration.as_secs() > 30 { | ||||
|             duration = Duration::from_secs(30); | ||||
|         } | ||||
|         let mut delay = tokio::time::delay_for(duration); | ||||
|         let delay = tokio::time::sleep(duration); | ||||
|         tokio::pin!(delay); | ||||
|         tokio::select! { | ||||
|             _ = &mut delay => {} | ||||
|             _ = watcher => {} | ||||
|  |  | |||
|  | @ -7,7 +7,6 @@ use ruma::{ | |||
|     events::{room::message, EventType}, | ||||
|     UserId, | ||||
| }; | ||||
| use tokio::select; | ||||
| 
 | ||||
| pub enum AdminCommand { | ||||
|     RegisterAppservice(serde_yaml::Value), | ||||
|  | @ -71,7 +70,7 @@ impl Admin { | |||
|             }; | ||||
| 
 | ||||
|             loop { | ||||
|                 select! { | ||||
|                 tokio::select! { | ||||
|                     Some(event) = receiver.next() => { | ||||
|                         match event { | ||||
|                             AdminCommand::RegisterAppservice(yaml) => { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue