Skip to content

Commit e3a8b68

Browse files
committed
fix: remove useless method get_current_time
1 parent d29ad78 commit e3a8b68

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/ack_audit_log_handler.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,6 @@ def __init__(self, server: FastMCP, settings: Optional[Dict[str, Any]] = None):
123123

124124
logger.info("ACK Audit Log Handler initialized")
125125

126-
async def get_current_time(self, ctx: Context) -> Dict[str, Any]:
127-
# Set per-request context from handler setting
128-
enable_execution_log_ctx.set(self.enable_execution_log)
129-
130-
# Initialize execution log
131-
132126
async def query_audit_logs(self,
133127
ctx: Context,
134128
cluster_id: str = Field(
@@ -263,6 +257,7 @@ async def get_current_time(self) -> GetCurrentTimeOutput:
263257
GetCurrentTimeOutput: 包含当前时间的 ISO 8601 格式和 Unix 时间戳格式
264258
"""
265259
# Initialize execution log
260+
enable_execution_log_ctx.set(self.enable_execution_log)
266261
execution_log = ExecutionLog(
267262
tool_call_id=f"get_current_time_{int(time.time() * 1000)}",
268263
start_time=datetime.utcnow().isoformat() + "Z"

0 commit comments

Comments
 (0)