Skip to content

Commit a87abdf

Browse files
authored
fixes typo in LeaseSpec initialisation (#1024)
1 parent f02867d commit a87abdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rsocket-core/src/main/java/io/rsocket/core/LeaseSpec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public LeaseSpec sender(LeaseSender sender) {
3838
* no leases is available
3939
*/
4040
public LeaseSpec maxPendingRequests(int maxPendingRequests) {
41-
this.maxPendingRequests = 0;
41+
this.maxPendingRequests = maxPendingRequests;
4242
return this;
4343
}
4444
}

0 commit comments

Comments
 (0)