Skip to content

Commit a92c861

Browse files
vishnu-labwillmostly
authored andcommitted
fixing unnecessary call to provideadhocbackend
1 parent 6906fd2 commit a92c861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public String provideAdhocBackend(String user)
231231
public String provideBackendForRoutingGroup(String routingGroup, String user)
232232
{
233233
return getBackendForRoutingGroup(routingGroup, user)
234-
.orElse(provideAdhocBackend(user));
234+
.orElseGet(() -> provideAdhocBackend(user));
235235
}
236236

237237
@Override

0 commit comments

Comments
 (0)