Rename some fields
Rename RestartPolicy fields for consistency and clarity
This commit is contained in:
		
							parent
							
								
									101577a784
								
							
						
					
					
						commit
						b1620f4a11
					
				| @ -33,9 +33,9 @@ message EnvironmentEntry { | |||||||
| message RestartPolicy { | message RestartPolicy { | ||||||
|   uint32 max_retries = 1; |   uint32 max_retries = 1; | ||||||
|   uint32 delay_seconds = 2; |   uint32 delay_seconds = 2; | ||||||
|   oneof policy { |   oneof policy_type_type { | ||||||
|     bool ALWAYS = 3; |     bool Always = 3; | ||||||
|     bool ON_NON_ZERO_EXIT = 4; |     bool OnNonZeroExit = 4; | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -43,7 +43,7 @@ message RestartPolicy { | |||||||
| message ChildProcess { | message ChildProcess { | ||||||
|   string path = 1; |   string path = 1; | ||||||
|   repeated string arguments = 2; |   repeated string arguments = 2; | ||||||
|   RestartPolicy restart_policy = 3; |   RestartPolicy restart= 3; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| service ConfigManager { | service ConfigManager { | ||||||
|  | |||||||
| @ -58,7 +58,7 @@ pub mod config { | |||||||
|         #[prost(string, repeated, tag = "2")] |         #[prost(string, repeated, tag = "2")] | ||||||
|         pub arguments: Vec<String>, |         pub arguments: Vec<String>, | ||||||
|         #[prost(message, optional, tag = "3")] |         #[prost(message, optional, tag = "3")] | ||||||
|         restart_policy: Option<RestartPolicy>, |         restart: Option<RestartPolicy>, | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     #[derive(Clone, Serialize, Deserialize, prost::Message)] |     #[derive(Clone, Serialize, Deserialize, prost::Message)] | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user