From 91f8af183af1dc398e21163fd2b93033494c4fa9 Mon Sep 17 00:00:00 2001 From: Omar Abdulaziz Date: Mon, 13 May 2024 16:42:10 +0300 Subject: [PATCH] - fix the ipv6 indexer default duration - fix the ipv6 rmb call result --- grid-proxy/CHANGELOG.md | 6 ++++++ grid-proxy/charts/gridproxy/Chart.yaml | 2 +- grid-proxy/cmds/proxy_server/main.go | 2 +- grid-proxy/internal/indexer/ipv6.go | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/grid-proxy/CHANGELOG.md b/grid-proxy/CHANGELOG.md index ceb162517..e82396a0f 100644 --- a/grid-proxy/CHANGELOG.md +++ b/grid-proxy/CHANGELOG.md @@ -12,6 +12,12 @@ Check `/version` on any instance to know the version. ## Releases +### v0.15.2 + +--- + +- `fix` ipv6 indexer (default interval, rmb call result) + ### v0.15.1 --- diff --git a/grid-proxy/charts/gridproxy/Chart.yaml b/grid-proxy/charts/gridproxy/Chart.yaml index de0f44597..05d472903 100644 --- a/grid-proxy/charts/gridproxy/Chart.yaml +++ b/grid-proxy/charts/gridproxy/Chart.yaml @@ -20,6 +20,6 @@ version: 1.0.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. -appVersion: 0.15.1 +appVersion: 0.15.2 # make sure to update the changelog with the changes in this release diff --git a/grid-proxy/cmds/proxy_server/main.go b/grid-proxy/cmds/proxy_server/main.go index bdd50b050..173508279 100644 --- a/grid-proxy/cmds/proxy_server/main.go +++ b/grid-proxy/cmds/proxy_server/main.go @@ -101,7 +101,7 @@ func main() { flag.UintVar(&f.dmiIndexerNumWorkers, "dmi-indexer-workers", 1, "number of workers checking on node dmi") flag.UintVar(&f.speedIndexerIntervalMins, "speed-indexer-interval", 5, "node speed check interval in min") flag.UintVar(&f.speedIndexerNumWorkers, "speed-indexer-workers", 100, "number of workers checking on node speed") - flag.UintVar(&f.ipv6IndexerIntervalMins, "ipv6-indexer-interval", 1, "node ipv6 check interval in min") + flag.UintVar(&f.ipv6IndexerIntervalMins, "ipv6-indexer-interval", 60*24, "node ipv6 check interval in min") flag.UintVar(&f.ipv6IndexerNumWorkers, "ipv6-indexer-workers", 10, "number of workers checking on node having ipv6") flag.Parse() diff --git a/grid-proxy/internal/indexer/ipv6.go b/grid-proxy/internal/indexer/ipv6.go index 714fb30e8..0020fa183 100644 --- a/grid-proxy/internal/indexer/ipv6.go +++ b/grid-proxy/internal/indexer/ipv6.go @@ -31,7 +31,7 @@ func (w *Ipv6Work) Finders() map[string]time.Duration { func (w *Ipv6Work) Get(ctx context.Context, rmb *peer.RpcClient, id uint32) ([]types.HasIpv6, error) { var has_ipv6 bool - if err := callNode(ctx, rmb, cmd, nil, id, has_ipv6); err != nil { + if err := callNode(ctx, rmb, cmd, nil, id, &has_ipv6); err != nil { return []types.HasIpv6{}, nil }