mirror of
				https://github.com/0glabs/0g-storage-node.git
				synced 2025-11-04 08:37:27 +00:00 
			
		
		
		
	* add grpc for uploading segments * add reflection * add upload segments grpc function * format code * fix lint * fix test
		
			
				
	
	
		
			8 lines
		
	
	
		
			259 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			259 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
fn main() -> Result<(), Box<dyn std::error::Error>> {
 | 
						|
    // Compile proto/my_service.proto
 | 
						|
    tonic_build::configure()
 | 
						|
        .file_descriptor_set_path("proto/zgs_grpc_descriptor.bin")
 | 
						|
        .compile(&["proto/zgs_grpc.proto"], &["proto"])?;
 | 
						|
    Ok(())
 | 
						|
}
 |