🚧 wip: add placeholder for client tokens
							parent
							
								
									324c1f7cd6
								
							
						
					
					
						commit
						5376e8bba0
					
				| 
						 | 
				
			
			@ -40,6 +40,7 @@
 | 
			
		|||
#![allow (clippy::mut_mut)]
 | 
			
		||||
 | 
			
		||||
use std::{
 | 
			
		||||
	collections::*,
 | 
			
		||||
	future::Future,
 | 
			
		||||
	path::PathBuf,
 | 
			
		||||
	sync::Arc,
 | 
			
		||||
| 
						 | 
				
			
			@ -60,6 +61,7 @@ use ptth_core::{
 | 
			
		|||
	http_serde,
 | 
			
		||||
	prelude::*,
 | 
			
		||||
};
 | 
			
		||||
// use crate::key_validity::BlakeHashWrapper;
 | 
			
		||||
 | 
			
		||||
pub mod errors;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -218,6 +220,9 @@ pub struct ConfigFile {
 | 
			
		|||
	
 | 
			
		||||
	/// For debugging.
 | 
			
		||||
	pub throttle_upload: bool,
 | 
			
		||||
	
 | 
			
		||||
	// Clients don't need to auth if this is None
 | 
			
		||||
	// pub client_tripcodes: HashMap <String, BlakeHashWrapper>,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl ConfigFile {
 | 
			
		||||
| 
						 | 
				
			
			@ -229,6 +234,7 @@ impl ConfigFile {
 | 
			
		|||
			relay_url,
 | 
			
		||||
			file_server_root: PathBuf::from ("."),
 | 
			
		||||
			throttle_upload: false,
 | 
			
		||||
			// client_tripcodes: HashSet::new (),
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
| 
						 | 
				
			
			@ -269,6 +275,7 @@ impl Builder {
 | 
			
		|||
			relay_url,
 | 
			
		||||
			file_server_root: PathBuf::from ("."),
 | 
			
		||||
			throttle_upload: false,
 | 
			
		||||
			// client_tripcodes: HashMap::new (),
 | 
			
		||||
		};
 | 
			
		||||
		
 | 
			
		||||
		Self {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue