Skip to content

Commit fe11b53

Browse files
Poggeccicopybara-github
authored andcommitted
chore: mcpasynctool internal method typo
PiperOrigin-RevId: 795513016
1 parent d972b87 commit fe11b53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/com/google/adk/tools/mcp/McpAsyncTool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public McpAsyncTool(
7474
super(mcpTool, mcpSession, mcpSessionManager, objectMapper);
7575
}
7676

77-
private Single<McpSchema.InitializeResult> reintializeSession() {
77+
private Single<McpSchema.InitializeResult> reinitializeSession() {
7878
McpAsyncClient client = this.mcpSessionManager.createAsyncSession();
7979
return Single.fromCompletionStage(
8080
client
@@ -114,6 +114,6 @@ public Single<Map<String, Object>> runAsync(Map<String, Object> args, ToolContex
114114
.doOnNext(
115115
error ->
116116
logger.error("Retrying callTool due to: {}", error.getMessage(), error))
117-
.flatMapSingle(_ignore -> this.reintializeSession()));
117+
.flatMapSingle(_ignore -> this.reinitializeSession()));
118118
}
119119
}

0 commit comments

Comments
 (0)