diff --git a/go.mod b/go.mod index 5927333..876526f 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/google/uuid v1.3.0 github.com/multiformats/go-multiaddr v0.4.0 github.com/nspcc-dev/hrw v1.0.9 - github.com/nspcc-dev/locode-db v0.4.1-0.20231110164540-a21ea2774f2e + github.com/nspcc-dev/locode-db v0.4.1-0.20231120112844-64febbb63ce3 github.com/nspcc-dev/neo-go v0.102.0 github.com/nspcc-dev/neofs-api-go/v2 v2.14.0 github.com/nspcc-dev/neofs-contract v0.18.0 diff --git a/go.sum b/go.sum index b17132a..a4d32f9 100644 --- a/go.sum +++ b/go.sum @@ -192,6 +192,8 @@ github.com/nspcc-dev/hrw v1.0.9 h1:17VcAuTtrstmFppBjfRiia4K2wA/ukXZhLFS8Y8rz5Y= github.com/nspcc-dev/hrw v1.0.9/go.mod h1:l/W2vx83vMQo6aStyx2AuZrJ+07lGv2JQGlVkPG06MU= github.com/nspcc-dev/locode-db v0.4.1-0.20231110164540-a21ea2774f2e h1:mcL78g9av0/CYVrgMgGqRJLwZAfvLdIaoaPnEDLC6n8= github.com/nspcc-dev/locode-db v0.4.1-0.20231110164540-a21ea2774f2e/go.mod h1:M+v8C+t9vwYbIVEdTPX/0w2LFRY+FJnYbVUdrzq7iWQ= +github.com/nspcc-dev/locode-db v0.4.1-0.20231120112844-64febbb63ce3 h1:UM9Cu0g1UxwWiJK6B5SLbC+b/kqX0Z7CfZB2AVD9D2Y= +github.com/nspcc-dev/locode-db v0.4.1-0.20231120112844-64febbb63ce3/go.mod h1:M+v8C+t9vwYbIVEdTPX/0w2LFRY+FJnYbVUdrzq7iWQ= github.com/nspcc-dev/neo-go v0.102.0 h1:O2Gt4JPOWmp0c+PnPWwd2wPI74BKSwkaNCEyvyQTWJw= github.com/nspcc-dev/neo-go v0.102.0/go.mod h1:QXxpZxJT2KedwM0Nlj8UO0/fZN2WIe4h/i03uBHKbnc= github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20230919154019-f66abd020d6a h1:ZF1T2PfRJh0LbQcMQAPMmp94B27o/6DKZV+zcMIUNHM= diff --git a/pkg/monitor/monitor.go b/pkg/monitor/monitor.go index 94e5cd8..43131bd 100644 --- a/pkg/monitor/monitor.go +++ b/pkg/monitor/monitor.go @@ -274,8 +274,8 @@ func (m *Monitor) processNetworkMap(nm NetmapInfo, candidates NetmapCandidatesIn } else { nodeLoc := nodeLocation{ name: record.Location, - long: strconv.FormatFloat(record.Point.Longitude(), 'f', 4, 64), - lat: strconv.FormatFloat(record.Point.Latitude(), 'f', 4, 64), + long: strconv.FormatFloat(float64(record.Point.Longitude), 'f', 4, 32), + lat: strconv.FormatFloat(float64(record.Point.Latitude), 'f', 4, 32), } exportCountries[nodeLoc]++