File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,17 @@ func (l *Lock) Period() (time.Duration, error) {
4848
4949type ResetPeriod uint8
5050
51+ const (
52+ OneSecond ResetPeriod = 0
53+ FifteenSeconds ResetPeriod = 1
54+ OneMinute ResetPeriod = 2
55+ TenMinutes ResetPeriod = 3
56+ OneHourAndFiveMinutes ResetPeriod = 4
57+ OneDay ResetPeriod = 5
58+ SevenDaysAndOneHour ResetPeriod = 6
59+ ThirtyDays ResetPeriod = 7
60+ )
61+
5162func (p ResetPeriod ) ToDuration () (time.Duration , error ) {
5263 switch p {
5364 case OneSecond :
@@ -71,17 +82,6 @@ func (p ResetPeriod) ToDuration() (time.Duration, error) {
7182 }
7283}
7384
74- const (
75- OneSecond ResetPeriod = 0
76- FifteenSeconds ResetPeriod = 1
77- OneMinute ResetPeriod = 2
78- TenMinutes ResetPeriod = 3
79- OneHourAndFiveMinutes ResetPeriod = 4
80- OneDay ResetPeriod = 5
81- SevenDaysAndOneHour ResetPeriod = 6
82- ThirtyDays ResetPeriod = 7
83- )
84-
8585type BatchCompact struct {
8686 Arbiter common.Address
8787 Sponsor common.Address
You can’t perform that action at this time.
0 commit comments