Commit 022906d
Bret McGuire
Slight refactorig of prior commit. Main goal was to preserve ordering of hosts on the
token ring; Set.to_a returns values in an "uncertain" order so we attempt to avoid it
all together.
Beneficial side effect of this change is that the impl moves to methods on Enumerable.1 parent 42c435d commit 022906d
File tree
2 files changed
+12
-12
lines changed- lib/cassandra/cluster/schema/replication_strategies
- spec/cassandra/cluster/schema/replication_strategies
2 files changed
+12
-12
lines changedLines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 34 | + | |
| 35 | + | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| |||
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
0 commit comments