Skip to content

Commit d90523e

Browse files
Use correct Strings.format
1 parent 7f22fa3 commit d90523e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/action/datastreams/autosharding/DataStreamAutoShardingService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public String toString() {
330330
increaseCalculation.writeIndexLoadForIncrease,
331331
decreaseCalculation == null
332332
? ""
333-
: String.format(
333+
: Strings.format(
334334
", decrease calculation gives %d shards using %s load %g for %s",
335335
decreaseCalculation.optimalShardCountForDecrease,
336336
inputs.decreaseShardsMetric,

0 commit comments

Comments
 (0)