Skip to content

Commit fce20fb

Browse files
committed
Fixed typo in LeaseSpec initialisation
Signed-off-by: arodionov <[email protected]>
1 parent f02867d commit fce20fb

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)