()
| 166 | } |
| 167 | } |
| 168 | func SubBigTxJob() { |
| 169 | nv := atomic.AddInt32(&bigTxJobs, -1) |
| 170 | if nv == BigTxMaxJobs - 1 { |
| 171 | Logger.Debug("big tx job number decreased", "jobs", nv, "max", BigTxMaxJobs) |
| 172 | } |
| 173 | } |
| 174 | func BigTxReachMax() bool { |
| 175 | return atomic.LoadInt32(&bigTxJobs) >= BigTxMaxJobs |
| 176 | } |
no outgoing calls
no test coverage detected