(d domain)
| 367 | } |
| 368 | |
| 369 | func (a *Acquirer) clearOrPend(d domain) { |
| 370 | a.mu.Lock() |
| 371 | defer a.mu.Unlock() |
| 372 | if len(d.acquirees) == 0 { |
| 373 | // this can happen if the domain is removed right around the time the |
| 374 | // backup poll (which calls this function) triggers. Nothing to do |
| 375 | // since there are no acquirees. |
| 376 | return |
| 377 | } |
| 378 | a.clearOrPendLocked(d) |
| 379 | } |
| 380 | |
| 381 | func (*Acquirer) clearOrPendLocked(d domain) { |
| 382 | // MUST BE CALLED HOLDING THE a.mu LOCK |
no test coverage detected