Skip to content

Replace Lifetime with Interval #508

Description

@llucax

What's needed?

Interval and Lifetime are basically the same message, except that Lifetime uses an older field name style (_timestamp vs _time). We should avoid having 2 messages that are exactly the same

Proposed solution

Replace uses of Lifetime with Interval and mark Lifetime as deprecated.

Additionally we could rename Interval as TimeInterval to make it more specific, as an interval could be of other types too.

Additional context

This change is backwards compatible at the wire level, as both messages have the same type and tag number for the fields, it would only be a breaking change for generated bindings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions