deleted contracts on register app node #6
| @ -37,8 +37,8 @@ message NewAppReq { | ||||
| 
 | ||||
| message AppResource { | ||||
|   uint32 memory_mb = 1; | ||||
|   uint32 disk_mb = 2; | ||||
|   uint32 vcpu  = 3; | ||||
|   uint32 disk_size_gb = 2; | ||||
|   uint32 vcpus  = 3; | ||||
|   repeated uint32 ports = 4; | ||||
| } | ||||
| 
 | ||||
|  | ||||
| @ -6,8 +6,8 @@ use serde::{Deserialize, Serialize}; | ||||
| #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Default)] | ||||
| pub struct Resource { | ||||
|     pub memory_mb: u32, | ||||
|     pub disk_mb: u32, | ||||
|     pub vcpu: u32, | ||||
|     pub disk_size_gb: u32, | ||||
|     pub vcpus: u32, | ||||
|     pub port: Vec<u32>, | ||||
| } | ||||
| 
 | ||||
| @ -15,8 +15,8 @@ impl From<AppResource> for Resource { | ||||
|     fn from(pb_val: AppResource) -> Self { | ||||
|         Self { | ||||
|             memory_mb: pb_val.memory_mb, | ||||
|             disk_mb: pb_val.disk_mb, | ||||
|             vcpu: pb_val.vcpu, | ||||
|             disk_size_gb: pb_val.disk_size_gb, | ||||
|             vcpus: pb_val.vcpus, | ||||
|             port: pb_val.ports, | ||||
|         } | ||||
|     } | ||||
| @ -25,8 +25,8 @@ impl From<Resource> for AppResource { | ||||
|     fn from(val: Resource) -> AppResource { | ||||
|         AppResource { | ||||
|             memory_mb: val.memory_mb, | ||||
|             disk_mb: val.disk_mb, | ||||
|             vcpu: val.vcpu, | ||||
|             disk_size_gb: val.disk_size_gb, | ||||
|             vcpus: val.vcpus, | ||||
|             ports: val.port, | ||||
|         } | ||||
|     } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user