We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the public ip 78.122.13.30, the function Resolver.nearest_endpoints(ip) return this list:
Resolver.nearest_endpoints(ip)
[ %{ip: '78.122.13.30', port: 40000}, %{ip: '104.248.43.182', port: 40000}, %{ip: '146.190.18.11', port: 40000}, %{ip: '176.158.137.220', port: 40000}, %{ip: '90.114.215.48', port: 40001}, %{ip: '188.166.234.20', port: 40000}, %{ip: '24.86.196.220', port: 40000}, %{ip: '170.64.129.22', port: 40000}, %{ip: '157.230.52.175', port: 40000}, %{ip: '138.197.163.138', port: 40000}, %{ip: '88.160.124.188', port: 4000}, %{ip: '46.101.13.189', port: 40000} ]
But when requesting the api nearest_endpoint througth graphiql it return the same list but in reverse order:
{ "data": { "nearestEndpoints": [ { "ip": "46.101.13.189", "port": 40000 }, { "ip": "88.160.124.188", "port": 4000 }, { "ip": "157.230.52.175", "port": 40000 }, { "ip": "138.197.163.138", "port": 40000 }, { "ip": "170.64.129.22", "port": 40000 }, { "ip": "24.86.196.220", "port": 40000 }, { "ip": "188.166.234.20", "port": 40000 }, { "ip": "104.248.43.182", "port": 40000 }, { "ip": "146.190.18.11", "port": 40000 }, { "ip": "176.158.137.220", "port": 40000 }, { "ip": "90.114.215.48", "port": 40001 }, { "ip": "78.122.13.30", "port": 40000 } ] } }
The problem may be in the function resolve of Absinthe. This function should not change the list order received from the Resolver.
The text was updated successfully, but these errors were encountered:
apoorv-2204
Successfully merging a pull request may close this issue.
Describe the problem you discovered
Using the public ip 78.122.13.30, the function
Resolver.nearest_endpoints(ip)
return this list:But when requesting the api nearest_endpoint througth graphiql it return the same list but in reverse order:
Describe the solution you'd like
The problem may be in the function resolve of Absinthe.
This function should not change the list order received from the Resolver.
The text was updated successfully, but these errors were encountered: