(userID string)
| 582 | } |
| 583 | |
| 584 | func shardByUser(userID string) uint32 { |
| 585 | h := ingester_client.HashNew32() |
| 586 | h = ingester_client.HashAdd32(h, userID) |
| 587 | return h |
| 588 | } |
| 589 | |
| 590 | // This function generates different values for different order of same labels. |
| 591 | func shardByAllLabels(userID string, labels []cortexpb.LabelAdapter) uint32 { |
no outgoing calls
no test coverage detected