Skip to content

Commit ac76994

Browse files
Put storeall above other mirrors (#625)
1 parent d96f98e commit ac76994

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

api/dbv1/full_users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func squareImageStruct(maybeCids ...pgtype.Text) *SquareImage {
100100

101101
// rendezvous for cid
102102
first, rest := rendezvous.GlobalHasher.ReplicaSet3(cid)
103-
rest = append(rest, config.Cfg.StoreAllNodes...)
103+
rest = append(config.Cfg.StoreAllNodes, rest...)
104104

105105
return &SquareImage{
106106
X150x150: fmt.Sprintf("%s/content/%s/150x150.jpg", first, cid),

api/dbv1/media_link.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type Id3Tags struct {
2626

2727
func mediaLink(cid string, trackId int32, userId int32, id3Tags *Id3Tags) (*MediaLink, error) {
2828
first, rest := rendezvous.GlobalHasher.ReplicaSet3(cid)
29-
rest = append(rest, config.Cfg.StoreAllNodes...)
29+
rest = append(config.Cfg.StoreAllNodes, rest...)
3030

3131
timestamp := time.Now().Unix() * 1000
3232
data := map[string]interface{}{

0 commit comments

Comments
 (0)