Skip to content

Commit

Permalink
chore(primitives): remove static file stage (#7116)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Mar 12, 2024
1 parent c949308 commit c15f2d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/primitives/src/stage/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum StageId {
/// Static File stage in the process.
#[deprecated(
note = "Static Files are generated outside of the pipeline and do not require a separate stage"
)]
StaticFile,
/// Header stage in the process.
Headers,
Expand Down Expand Up @@ -35,8 +38,7 @@ pub enum StageId {

impl StageId {
/// All supported Stages
pub const ALL: [StageId; 13] = [
StageId::StaticFile,
pub const ALL: [StageId; 12] = [
StageId::Headers,
StageId::Bodies,
StageId::SenderRecovery,
Expand All @@ -54,6 +56,7 @@ impl StageId {
/// Return stage id formatted as string.
pub fn as_str(&self) -> &str {
match self {
#[allow(deprecated)]
StageId::StaticFile => "StaticFile",
StageId::Headers => "Headers",
StageId::Bodies => "Bodies",
Expand Down Expand Up @@ -94,7 +97,6 @@ mod tests {

#[test]
fn stage_id_as_string() {
assert_eq!(StageId::StaticFile.to_string(), "StaticFile");
assert_eq!(StageId::Headers.to_string(), "Headers");
assert_eq!(StageId::Bodies.to_string(), "Bodies");
assert_eq!(StageId::SenderRecovery.to_string(), "SenderRecovery");
Expand Down

0 comments on commit c15f2d5

Please sign in to comment.