Skip to content

Commit

Permalink
make termination reason serialization match valuable
Browse files Browse the repository at this point in the history
  • Loading branch information
rolyatmax committed Nov 15, 2024
1 parent 97d5748 commit 3e5fbd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plane/src/types/backend_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ impl valuable::Valuable for TerminationReason {
match self {
TerminationReason::Swept => valuable::Value::String("swept"),
TerminationReason::External => valuable::Value::String("external"),
TerminationReason::KeyExpired => valuable::Value::String("key_expired"),
TerminationReason::KeyExpired => valuable::Value::String("keyexpired"),
TerminationReason::Lost => valuable::Value::String("lost"),
TerminationReason::StartupTimeout => valuable::Value::String("startup_timeout"),
TerminationReason::InternalError => valuable::Value::String("internal_error"),
TerminationReason::StartupTimeout => valuable::Value::String("startuptimeout"),
TerminationReason::InternalError => valuable::Value::String("internalerror"),
}
}

Expand Down

0 comments on commit 3e5fbd8

Please sign in to comment.