Skip to content

Commit 5ab8236

Browse files
authored
Merge pull request #199 from mognify/master
Fix issue #191: IPFS.jar's timeout(int timeout) does not pass timeout to constructor
2 parents 3ae671b + 9d3e42f commit 5ab8236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/ipfs/api/IPFS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public IPFS(String host, int port, String version, int connectTimeoutMillis, int
9393
* @return current IPFS object with configured timeout
9494
*/
9595
public IPFS timeout(int timeout) {
96-
return new IPFS(host, port, version, connectTimeoutMillis, readTimeoutMillis, protocol.equals("https"));
96+
return new IPFS(host, port, version, timeout, timeout, protocol.equals("https"));
9797
}
9898

9999
public List<MerkleNode> add(NamedStreamable file) throws IOException {

0 commit comments

Comments
 (0)