Skip to content

Commit 9d3e42f

Browse files
authored
timeout fix attempt
im not sure if timeout is meant to be for connection or for read so i'm mainly committing this to see if it gets rejected with an explanation, so i can learn more about this project it seems like this timeout is supposed to apply to both, considering there are 2 timeout variables but only 1 vague timeout can be passed in
1 parent be68ce7 commit 9d3e42f

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)