make globals more simple
This commit is contained in:
		
					parent
					
						
							
								f8d37f7846
							
						
					
				
			
			
				commit
				
					
						fab28e8609
					
				
			
		
					 6 changed files with 261 additions and 228 deletions
				
			
		|  | @ -10,7 +10,7 @@ use tokio::time::Duration; | |||
| /// But note that in Globals, we do not have Mutex and RwLock. It is indeed, the context shared among async tasks.
 | ||||
| pub struct Globals { | ||||
|   /// Configuration parameters for proxy transport and request handlers
 | ||||
|   pub proxy_config: ProxyConfig, | ||||
|   pub proxy_config: ProxyConfig, // TODO: proxy configはarcに包んでこいつだけ使いまわせばいいように変えていく。backendsも?
 | ||||
| 
 | ||||
|   /// Shared context - Backend application objects to which http request handler forward incoming requests
 | ||||
|   pub backends: Backends, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jun Kurihara
				Jun Kurihara