Skip to content

Commit

Permalink
go.mod: update to the new locode DB
Browse files Browse the repository at this point in the history
More efficient one.

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Nov 20, 2023
1 parent bfb2f33 commit e4f95cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
4 changes: 2 additions & 2 deletions pkg/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]++
Expand Down

0 comments on commit e4f95cd

Please sign in to comment.