Skip to content
Snippets Groups Projects
Commit 18fb22e2 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Pushing peering docu to endpoint with the api : ES_CORE_API (BMA/BMAS no...

[fix] Pushing peering docu to endpoint with the api : ES_CORE_API (BMA/BMAS no more support POST to /network/peering)
parent 40ef6bb1
No related branches found
No related tags found
No related merge requests found
Pipeline #4303 failed
...@@ -207,11 +207,11 @@ duniter.p2p.includes.endpoints: [ ...@@ -207,11 +207,11 @@ duniter.p2p.includes.endpoints: [
# #
# duniter.p2p.peering.enable: false # duniter.p2p.peering.enable: false
# #
# Define targeted API (for peers slection) where to send the peer document (if peering is enable). (Default: ["BASIC_MERKLED_API", "BMAS"]) # Define targeted API (for peers slection) where to send the peer document (if peering is enable). (Default: ["ES_CORE_API"])
# This API should accept a POST request to '/network/peering' (will send a see the Duniter protocol) # This API should accept a POST request to '/network/peering' (will send a see the Duniter protocol)
# #
# duniter.p2p.peering.targetedApis: [ # duniter.p2p.peering.targetedApis: [
# "BASIC_MERKLED_API", "BMAS" # "ES_CORE_API"
# ] # ]
# #
# Define cluster API to publish (if peering is enable). By default, all compatible API # Define cluster API to publish (if peering is enable). By default, all compatible API
......
...@@ -322,8 +322,7 @@ public class PluginSettings extends AbstractLifecycleComponent<PluginSettings> { ...@@ -322,8 +322,7 @@ public class PluginSettings extends AbstractLifecycleComponent<PluginSettings> {
*/ */
public Collection<EndpointApi> getPeeringTargetedApis() { public Collection<EndpointApi> getPeeringTargetedApis() {
String[] targetedApis = settings.getAsArray("duniter.p2p.peering.targetedApis", new String[]{ String[] targetedApis = settings.getAsArray("duniter.p2p.peering.targetedApis", new String[]{
EndpointApi.BASIC_MERKLED_API.name(), EndpointApi.ES_CORE_API.name()
EndpointApi.BMAS.name()
}); });
if (CollectionUtils.isEmpty(targetedApis)) return null; if (CollectionUtils.isEmpty(targetedApis)) return null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment