mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Initial commit
This commit is contained in:
14
src/core/service/CoreService.cc
Normal file
14
src/core/service/CoreService.cc
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "CoreService.h"
|
||||
|
||||
#include "core/service/ops/Include.h"
|
||||
#include "core/utils/runOp.h"
|
||||
|
||||
#define DEFINE_SERDE_SERVICE_METHOD_FULL(svc, name, Name, id, reqtype, rsptype) \
|
||||
CoTryTask<rsptype> svc##Service::name(serde::CallContext &ctx, const reqtype &req) { \
|
||||
Name##Operation op(std::move(req)); \
|
||||
CO_INVOKE_OP_INFO(op, ctx.peer()); \
|
||||
}
|
||||
|
||||
namespace hf3fs::core {
|
||||
#include "fbs/core/service/CoreServiceDef.h"
|
||||
} // namespace hf3fs::core
|
||||
Reference in New Issue
Block a user