(this: HashRing<any>)
| 107 | return Iterable.map(this.nodes.values(), ([n]) => n)[Symbol.iterator]() |
| 108 | }, |
| 109 | toJSON(this: HashRing<any>) { |
| 110 | return { |
| 111 | _id: "HashRing", |
| 112 | baseWeight: this.baseWeight, |
| 113 | nodes: this.ring.map(([, n]) => this.nodes.get(n)![0]) |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | /** |