Replace Split with SplitN

This commit is contained in:
freddygv 2021-10-26 15:32:12 -06:00
parent b9b6447977
commit 37a16e9487
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func (k GatewayKey) IsEmpty() bool {
} }
func gatewayKeyFromString(s string) GatewayKey { func gatewayKeyFromString(s string) GatewayKey {
split := strings.Split(s, ".") split := strings.SplitN(s, ".", 2)
return GatewayKey{ return GatewayKey{
Partition: split[0], Partition: split[0],
Datacenter: split[1], Datacenter: split[1],