Skip to content

Commit

Permalink
fix: java
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
  • Loading branch information
gfanton committed Jul 23, 2021
1 parent efa5509 commit cd2e290
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions android/bridge/src/main/java/ipfs/gomobile/android/IPFS.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ synchronized public void start() throws NodeStartException {
node.serveUnixSocketAPI(absSockPath);

// serve config Addresses API & Gateway
node.serveConfig()
node.serveConfig();
} catch (Exception e) {
throw new NodeStartException("Node start failed", e);
}
Expand Down Expand Up @@ -317,10 +317,9 @@ synchronized public RequestBuilder newRequest(@NonNull String command)
* @throws NodeListenException If the node failed to serve
* @see <a href="https://docs.ipfs.io/concepts/ipfs-gateway/#gateway-providers">IPFS Doc</a>
*/
synchronized public static string serveGatewayMultiaddr(@NonNull String multiaddr, @NonNull Boolean writable)
throw NodeListenException {
synchronized public String serveGatewayMultiaddr(@NonNull String multiaddr, @NonNull Boolean writable) throws NodeListenException {
try {
return node.serveGatewayMultiaddr(multiaddr, writable)
return node.serveGatewayMultiaddr(multiaddr, writable);
} catch (Exception e) {
throw new NodeListenException("failed to listen on gateway", e);
}
Expand Down

0 comments on commit cd2e290

Please sign in to comment.