Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit 0f18b22

Browse files
committed
Fix Node-bug
1 parent 8a2ca1c commit 0f18b22

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/de/hasenburg/fbase/rest/jersey/NodesResource.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public Response getNodeConfig() {
5555
m.setContent(JSONable.toJSON(config));
5656
return Response.ok(JSONable.toJSON(m)).build();
5757
}
58-
58+
5959
@POST
6060
@Produces(MediaType.TEXT_PLAIN)
6161
@Consumes(MediaType.APPLICATION_JSON)
@@ -68,9 +68,7 @@ public Response createNodeConfig(String json) {
6868

6969
try {
7070
fBase.namingServiceSender.sendNodeConfigCreate(nodeConfig);
71-
fBase.connector.nodeConfig_put(nodeConfig.getNodeID(), nodeConfig);
72-
} catch (FBaseCommunicationException | FBaseNamingServiceException
73-
| FBaseStorageConnectorException e) {
71+
} catch (FBaseCommunicationException | FBaseNamingServiceException e) {
7472
logger.warn(e);
7573
return Response.status(500, e.getMessage()).build();
7674
}

0 commit comments

Comments
 (0)