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 {
|
||||
uint32 max_retries = 1;
|
||||
uint32 delay_seconds = 2;
|
||||
oneof policy {
|
||||
bool ALWAYS = 3;
|
||||
bool ON_NON_ZERO_EXIT = 4;
|
||||
oneof policy_type_type {
|
||||
bool Always = 3;
|
||||
bool OnNonZeroExit = 4;
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ message RestartPolicy {
|
||||
message ChildProcess {
|
||||
string path = 1;
|
||||
repeated string arguments = 2;
|
||||
RestartPolicy restart_policy = 3;
|
||||
RestartPolicy restart= 3;
|
||||
}
|
||||
|
||||
service ConfigManager {
|
||||
|
@ -58,7 +58,7 @@ pub mod config {
|
||||
#[prost(string, repeated, tag = "2")]
|
||||
pub arguments: Vec<String>,
|
||||
#[prost(message, optional, tag = "3")]
|
||||
restart_policy: Option<RestartPolicy>,
|
||||
restart: Option<RestartPolicy>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize, prost::Message)]
|
||||
|
Loading…
Reference in New Issue
Block a user