app/vminsert/netstorage: remove the limit on the number of -storageNode addresses

There is no any reasons to limit the number of `-storageNode` addresses to 255.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1599
This commit is contained in:
Aliaksandr Valialkin 2021-09-09 19:09:38 +03:00
parent 09edcfd21c
commit dca6f0f7de

View File

@ -404,9 +404,6 @@ func InitStorageNodes(addrs []string) {
if len(addrs) == 0 {
logger.Panicf("BUG: addrs must be non-empty")
}
if len(addrs) > 255 {
logger.Panicf("BUG: too much addresses: %d; max supported %d addresses", len(addrs), 255)
}
// Sort addrs in order to guarantee identical series->vmstorage mapping across all the vminsert nodes.
addrsCopy := append([]string{}, addrs...)