Skip to content

Commit d68cba9

Browse files
authored
upgrade feat (#9949)
* 适配最新版 * upgrade smart-socket * upgrade smart-socket * upgrade smart-socket * upgrade smart-socket * upgrade feat * upgrade feat * upgrade feat * upgrade feat * upgrade feat
1 parent 5f109a0 commit d68cba9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frameworks/Java/smart-socket/src/main/java/org/smartboot/http/MultipleQueriesHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.smartboot.http;
22

33

4-
import tech.smartboot.feat.core.common.utils.NumberUtils;
4+
import tech.smartboot.feat.core.common.FeatUtils;
55
import tech.smartboot.feat.core.server.HttpHandler;
66
import tech.smartboot.feat.core.server.HttpRequest;
77
import tech.smartboot.feat.core.server.HttpResponse;
@@ -31,7 +31,7 @@ public void handle(HttpRequest httpRequest, CompletableFuture<Void> completableF
3131
HttpResponse response = httpRequest.getResponse();
3232
Thread.startVirtualThread(() -> {
3333
try {
34-
int queries = Math.min(Math.max(NumberUtils.toInt(httpRequest.getParameter("queries"), 1), 1), 500);
34+
int queries = Math.min(Math.max(FeatUtils.toInt(httpRequest.getParameter("queries"), 1), 1), 500);
3535
World[] worlds = new World[queries];
3636
try (Connection connection = dataSource.getConnection();
3737
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM World WHERE id=?");) {

frameworks/Java/smart-socket/src/main/java/org/smartboot/http/UpdateHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.smartboot.http;
22

33

4-
import tech.smartboot.feat.core.common.utils.NumberUtils;
4+
import tech.smartboot.feat.core.common.FeatUtils;
55
import tech.smartboot.feat.core.server.HttpHandler;
66
import tech.smartboot.feat.core.server.HttpRequest;
77
import tech.smartboot.feat.core.server.HttpResponse;
@@ -29,7 +29,7 @@ public UpdateHandler(DataSource dataSource) {
2929
@Override
3030
public void handle(HttpRequest request) throws IOException {
3131
HttpResponse response = request.getResponse();
32-
int queries = Math.min(Math.max(NumberUtils.toInt(request.getParameter("queries"), 1), 1), 500);
32+
int queries = Math.min(Math.max(FeatUtils.toInt(request.getParameter("queries"), 1), 1), 500);
3333
World[] worlds = new World[queries];
3434
StringJoiner updateSql = new StringJoiner(
3535
", ",

0 commit comments

Comments
 (0)