Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğecko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
Ğecko
Commits
bde2b0cb
Commit
bde2b0cb
authored
1 year ago
by
poka
Browse files
Options
Downloads
Patches
Plain Diff
enh: remove p2p.legal indexer endpoint
parent
65b5a9f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#34528
waiting for manual action
Stage: format
Stage: build_and_test
Stage: package
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/indexer_endpoints.json
+0
-1
0 additions, 1 deletion
config/indexer_endpoints.json
lib/providers/duniter_indexer.dart
+4
-3
4 additions, 3 deletions
lib/providers/duniter_indexer.dart
with
4 additions
and
4 deletions
config/indexer_endpoints.json
+
0
−
1
View file @
bde2b0cb
[
"https://gdev-indexer.p2p.legal"
,
"https://hasura.gdev.coinduf.eu"
]
This diff is collapsed.
Click to expand it.
lib/providers/duniter_indexer.dart
+
4
−
3
View file @
bde2b0cb
...
...
@@ -84,7 +84,8 @@ class DuniterIndexer with ChangeNotifier {
return
configBox
.
get
(
'customIndexer'
);
}
if
(
configBox
.
containsKey
(
'indexerEndpoint'
))
{
if
(
configBox
.
containsKey
(
'indexerEndpoint'
)
&&
listIndexerEndpoints
.
contains
(
configBox
.
get
(
'indexerEndpoint'
)))
{
if
(
await
checkIndexerEndpoint
(
configBox
.
get
(
'indexerEndpoint'
)))
{
return
configBox
.
get
(
'indexerEndpoint'
);
}
...
...
@@ -98,7 +99,7 @@ class DuniterIndexer with ChangeNotifier {
client
.
connectionTimeout
=
const
Duration
(
milliseconds:
3000
);
do
{
in
t
listLenght
=
listIndexerEndpoints
.
length
-
1
;
f
in
al
listLenght
=
listIndexerEndpoints
.
length
-
1
;
if
(
i
>
=
listLenght
)
{
log
.
e
(
'NO VALID INDEXER ENDPOINT FOUND'
);
indexerEndpoint
=
''
;
...
...
@@ -111,7 +112,7 @@ class DuniterIndexer with ChangeNotifier {
}
try
{
String
endpointPath
=
'
${listIndexerEndpoints[i]}
/v1/graphql'
;
final
endpointPath
=
'
${listIndexerEndpoints[i]}
/v1/graphql'
;
final
request
=
await
client
.
postUrl
(
Uri
.
parse
(
endpointPath
));
final
response
=
await
request
.
close
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment