Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit a28c6bd

Browse files
author
Alan Scherger
committed
feat: make sure even when we have 1 processor that that this is 1
1 parent fc63612 commit a28c6bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proteus-client/src/main/java/io/netifi/proteus/DefaultProteusBrokerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public DefaultProteusBrokerService(
145145
this.addressSelector = addressSelector;
146146
this.clientTransportFactory = clientTransportFactory;
147147
this.poolSize = poolSize;
148-
this.selectRefresh = poolSize / 2;
148+
this.selectRefresh = poolSize == 1 ? 1 : poolSize/ 2;
149149
this.keepalive = keepalive;
150150
this.tickPeriodSeconds = tickPeriodSeconds;
151151
this.ackTimeoutSeconds = ackTimeoutSeconds;

0 commit comments

Comments
 (0)