Skip to content

Commit

Permalink
[chore][status] Remove deprecated functions ReportComponentStatus a…
Browse files Browse the repository at this point in the history
…nd `ReportComponentOkIfStarting`
  • Loading branch information
atoulme committed Mar 19, 2024
1 parent 3b5aee0 commit b6a24df
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions service/internal/status/status.go
Expand Up @@ -121,17 +121,6 @@ func (r *Reporter) Ready() {
r.ready = true
}

// ReportComponentStatus reports status for the given InstanceID
// Deprecated: [v0.92.0] This function will be removed in a future release.
// Use ReportStatus instead.
func (r *Reporter) ReportComponentStatus(
id *component.InstanceID,
ev *component.StatusEvent,
) error {
r.ReportStatus(id, ev)
return nil
}

// ReportStatus reports status for the given InstanceID
func (r *Reporter) ReportStatus(
id *component.InstanceID,
Expand All @@ -148,14 +137,6 @@ func (r *Reporter) ReportStatus(
}
}

// ReportComponentOkIfStarting reports StatusOK if the component's current status is Starting
// Deprecated: [v0.92.0] This function will be removed in a future release.
// Use ReportOKIfStarting instead.
func (r *Reporter) ReportComponentOKIfStarting(id *component.InstanceID) error {
r.ReportOKIfStarting(id)
return nil
}

func (r *Reporter) ReportOKIfStarting(id *component.InstanceID) {
r.mu.Lock()
defer r.mu.Unlock()
Expand Down

0 comments on commit b6a24df

Please sign in to comment.