(maxBlocks int)
| 39 | } |
| 40 | |
| 41 | func NewIncrementValidator(maxBlocks int) *IncrementValidator { |
| 42 | if maxBlocks <= 0 { |
| 43 | maxBlocks = 20 |
| 44 | } |
| 45 | return &IncrementValidator{ |
| 46 | maxBlocks: maxBlocks, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func (self *IncrementValidator) Clean() { |
| 51 | self.mutex.Lock() |
no outgoing calls
no test coverage detected