| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,12 +22,6 @@ func NewConsistent() *Consistent { | |||
| 22 | 22 | } | |
| 23 | 23 | } | |
| 24 | 24 | ||
| 25 | - func (c *Consistent) P() { | ||
| 26 | - fmt.Println("c.hashSortNodes", c.hashSortNodes) | ||
| 27 | - fmt.Println("c.circle", c.circle) | ||
| 28 | - fmt.Println("c.nodes", c.nodes) | ||
| 29 | - } | ||
| 30 | - | ||
| 31 | 25 | func (c *Consistent) Add(node string) error { | |
| 32 | 26 | if _, ok := c.nodes[node]; ok { //判断新加节点是否存在 | |
| 33 | 27 | return fmt.Errorf("%s already existed", node) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments