MCPcopy
hub / github.com/ha/doozerd / Clean

Function Clean

src/pkg/member/member.go:14–25  ·  view source on GitHub ↗
(c chan string, st *store.Store, p consensus.Proposer)

Source from the content-addressed store, hash-verified

12
13
14func 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
28func getName(addr string, g store.Getter) string {

Callers 1

TestMemberSimpleFunction · 0.70

Calls 4

getNameFunction · 0.85
clearSlotFunction · 0.85
removeInfoFunction · 0.85
SnapMethod · 0.80

Tested by 1

TestMemberSimpleFunction · 0.56