File tree 2 files changed +0
-28
lines changed
2 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -106,20 +106,6 @@ func (pr *Progress) ResetState(state StateType) {
106
106
pr .Inflights .reset ()
107
107
}
108
108
109
- func max (a , b uint64 ) uint64 {
110
- if a > b {
111
- return a
112
- }
113
- return b
114
- }
115
-
116
- func min (a , b uint64 ) uint64 {
117
- if a > b {
118
- return b
119
- }
120
- return a
121
- }
122
-
123
109
// BecomeProbe transitions into StateProbe. Next is reset to Match+1 or,
124
110
// optionally and if larger, the index of the pending snapshot.
125
111
func (pr * Progress ) BecomeProbe () {
Original file line number Diff line number Diff line change @@ -26,20 +26,6 @@ func (st StateType) MarshalJSON() ([]byte, error) {
26
26
return []byte (fmt .Sprintf ("%q" , st .String ())), nil
27
27
}
28
28
29
- func min (a , b uint64 ) uint64 {
30
- if a > b {
31
- return b
32
- }
33
- return a
34
- }
35
-
36
- func max (a , b uint64 ) uint64 {
37
- if a > b {
38
- return a
39
- }
40
- return b
41
- }
42
-
43
29
var isLocalMsg = [... ]bool {
44
30
pb .MsgHup : true ,
45
31
pb .MsgBeat : true ,
You can’t perform that action at this time.
0 commit comments