-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BS: reduce interface state to active/revoked #3572
BS: reduce interface state to active/revoked #3572
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 9 of 9 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @lukedirtwalker)
go/beacon_srv/internal/ifstate/ifstate.go, line 160 at r1 (raw file):
// and propagation are reset to the zero value. The return value indicates, // whether the state is expired or revoked when the call returns. func (intf *Interface) Expire() bool {
The doc string needs to be updated.
Probably, the method should now be called Revoked
or similar.
go/beacon_srv/internal/ifstate/ifstate.go, line 179 at r1 (raw file):
// interface has been activated in the meantime and should not be revoked. // This is indicated through an error. func (intf *Interface) Revoke(rev *path_mgmt.SignedRevInfo) error {
Update doc string.
Should probably be called SetRevocation
or similar
1211607
to
bf2b868
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @oncilla)
go/beacon_srv/internal/ifstate/ifstate.go, line 160 at r1 (raw file):
Previously, Oncilla wrote…
The doc string needs to be updated.
Probably, the method should now be calledRevoked
or similar.
Done.
go/beacon_srv/internal/ifstate/ifstate.go, line 179 at r1 (raw file):
Previously, Oncilla wrote…
Update doc string.
Should probably be calledSetRevocation
or similar
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 6 of 6 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
doc/BeaconService.md, line 139 at r2 (raw file):
The BS periodically evicts beacons that contain revoked interfaces. ### Interfaces State
💯 for remembering to update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
bf2b868
to
1925c9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3.
Reviewable status: complete! all files reviewed, all discussions resolved
70dab28
to
b3b2426
Compare
b3b2426
to
c8600d0
Compare
Contributes #2926
This change is