Commit 457498b
authored
Go through regionPrios from config before regionMap (#247)
* Go through regionPrios from config before regionMap
Appending regionMap to regionPrios before searching it will prioritise searching the config regionPrios first, and then if not found, move on to regionMap. May need to add a line to remove duplicates from this list as regions in regionPrios and regionMap may appear twice (removing the second occurrence should remove the regionMap appearence and leave the first one added via regionPrios)
* Add an iteration through regionMap based on regionPrios to give new sortedMap order
Made some fixes to ensure it compiles and also to do this is a more logical way (without duplication)1 parent 805fb70 commit 457498b
1 file changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
630 | 647 | | |
631 | 648 | | |
632 | 649 | | |
633 | 650 | | |
634 | 651 | | |
635 | | - | |
| 652 | + | |
636 | 653 | | |
637 | 654 | | |
638 | 655 | | |
| |||
0 commit comments