Skip to content

Commit

Permalink
fix: expose serveAPI
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <norman@berty.tech>
  • Loading branch information
n0izn0iz committed Jan 29, 2022
1 parent 49bc7ca commit 9647494
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Bridge/GomobileIPFS/Sources/IPFS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ public class IPFS {
/// - Parameter onMultiaddr: The multiaddr to serve on
/// - Parameter writable: If true: will also support support `POST`, `PUT`, and `DELETE` methods.
/// - Throws: `NodeError`: If the node failed to serve
public func serve(onTCPPort: String) throws -> String {
public func serveAPI(onTCPPort: String) throws -> String {
guard let node = self.node else {
throw IPFSError("unable to serve the api, is the node started?")
}

return try node.serve(onTCPPort: onTCPPort)
return try node.serveAPI(onTCPPort: onTCPPort)
}


Expand Down

0 comments on commit 9647494

Please sign in to comment.