Skip to content

Commit

Permalink
fix: rename parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Apr 4, 2020
1 parent 0db75df commit e3ac294
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -1795,7 +1795,7 @@ private boolean canCreateSession() {
}
}

private void createSessions(final int sessionCount, boolean initialization) {
private void createSessions(final int sessionCount, boolean distributeOverChannels) {
logger.log(Level.FINE, String.format("Creating %d sessions", sessionCount));
synchronized (lock) {
numSessionsBeingCreated += sessionCount;
Expand All @@ -1804,7 +1804,8 @@ private void createSessions(final int sessionCount, boolean initialization) {
// calls and the session consumer consumes the returned sessions as they become available.
// The batchCreateSessions method automatically spreads the sessions evenly over all
// available channels.
sessionClient.asyncBatchCreateSessions(sessionCount, initialization, sessionConsumer);
sessionClient.asyncBatchCreateSessions(
sessionCount, distributeOverChannels, sessionConsumer);
} catch (Throwable t) {
// Expose this to customer via a metric.
numSessionsBeingCreated -= sessionCount;
Expand Down

0 comments on commit e3ac294

Please sign in to comment.