Skip to content

[memstore/rid] Don't allow nil value for start/end time - #1543

Open
the-glu wants to merge 20 commits into
interuss:masterfrom
Orbitalize:memstore_rid_cleanup_legacy
Open

the-glu wants to merge 20 commits into
interuss:masterfrom
Orbitalize:memstore_rid_cleanup_legacy

Conversation

@the-glu

@the-glu the-glu commented Jun 17, 2026

Copy link
Copy Markdown
Member

This PR follows #1538

It removes some legacy code in RID coming from sqlstore. Since ISA/Subscriptions cannot have nil start/end time, this removes this possibility in the memstore layer.

Tests have been adapted as well.

Contributes to #1492

@barroco barroco added the dss-raft Relating to the application-layer consensus implemenation based on raft label Jun 17, 2026

@mickmis mickmis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please track in #1492 for which stores this is implemented.
LGTM, with one minor improvement.

return nil
}
v := *t
func timePtr(t time.Time) *time.Time {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since 1.26 this should not be required anymore, just calling new(t) should be doing just that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dss-raft Relating to the application-layer consensus implemenation based on raft

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants