fix
This commit is contained in:
@@ -237,12 +237,12 @@ method_registry = JSONRPCMethodRegistry()
|
||||
# 便捷函数
|
||||
def create_response_handler() -> EnhancedJSONRPCResponse:
|
||||
"""创建响应处理器"""
|
||||
return EnhancedJSONRPCResponse(uuid4())
|
||||
return EnhancedJSONRPCResponse(str(uuid4()))
|
||||
|
||||
|
||||
def create_progress_reporter(total: int = 100) -> EnhancedProgressReporter:
|
||||
"""创建进度报告器"""
|
||||
return EnhancedProgressReporter(uuid4(), total)
|
||||
return EnhancedProgressReporter(str(uuid4()), total)
|
||||
|
||||
|
||||
def register_method(name: Optional[str] = None):
|
||||
|
||||
Reference in New Issue
Block a user