Skip to content

Commit

Permalink
change HostDatasourceId
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Jun 2, 2023
1 parent aff53e8 commit 794f0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alert/naming/hashring.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type DatasourceHashRingType struct {
}

// for alert_rule sharding
var HostDatasource int64 = -999
var HostDatasource int64 = 99999999
var DatasourceHashRing = DatasourceHashRingType{Rings: make(map[int64]*consistent.Consistent)}

func NewConsistentHashRing(replicas int32, nodes []string) *consistent.Consistent {
Expand Down

0 comments on commit 794f0f8

Please sign in to comment.