(d interface{})
| 717 | } |
| 718 | |
| 719 | func GetOrCreateRingDesc(d interface{}) *Desc { |
| 720 | if d == nil { |
| 721 | return NewDesc() |
| 722 | } |
| 723 | |
| 724 | return d.(*Desc) |
| 725 | } |
| 726 | |
| 727 | // MergeTokens takes in input multiple lists of tokens and returns a single list |
| 728 | // containing all tokens merged and sorted. Each input single list is required |