-
Notifications
You must be signed in to change notification settings - Fork 51
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
feat: add RemoveExpiredPolicies
#411
Conversation
d4603ba
to
dc961ce
Compare
(gogoproto.stdtime) = true, | ||
(gogoproto.nullable) = false | ||
]; | ||
google.protobuf.Timestamp expiration_time = 2 [(gogoproto.stdtime) = true]; |
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.
why change this?
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.
So the expiration can be nil (means no expiration)
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.
do this change still needed? if Change this, off-chain service should adapt to this, nil == expiration
@pythonberg1997 @guagualvcha
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.
or we can set nil to maxTimestamp when getting members from rpc, producing events
9ec5293
to
0dc9fa1
Compare
RemoveExpiredMembers
and RemoveExpiredPolicies
RemoveExpiredPolicies
0dc9fa1
to
019c81f
Compare
d6346d5
to
eccbb85
Compare
3eb9c8f
to
ff3406d
Compare
Description
This pr is to add method to remove expired data from the kv store
Rationale
To reduce the chain data
Changes
Notable changes:
GroupMember
expiration can be nil nowRemoveExpiredPolicies