(c chan string, st *store.Store, p consensus.Proposer)
| 12 | |
| 13 | |
| 14 | func Clean(c chan string, st *store.Store, p consensus.Proposer) { |
| 15 | for addr := range c { |
| 16 | _, g := st.Snap() |
| 17 | name := getName(addr, g) |
| 18 | if name != "" { |
| 19 | go func() { |
| 20 | clearSlot(p, g, name) |
| 21 | removeInfo(p, g, name) |
| 22 | }() |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | |
| 28 | func getName(addr string, g store.Getter) string { |