mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Initial commit
This commit is contained in:
20
src/core/app/ServerAppConfig.h
Normal file
20
src/core/app/ServerAppConfig.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include "common/app/NodeId.h"
|
||||
#include "common/net/ib/IBDevice.h"
|
||||
#include "common/utils/ConfigBase.h"
|
||||
|
||||
namespace hf3fs::core {
|
||||
struct ServerAppConfig : public ConfigBase<ServerAppConfig> {
|
||||
CONFIG_ITEM(node_id, 0);
|
||||
CONFIG_ITEM(allow_empty_node_id, true);
|
||||
|
||||
public:
|
||||
using Base = ConfigBase<ServerAppConfig>;
|
||||
using Base::init;
|
||||
|
||||
void init(const String &filePath, bool dump, const std::vector<config::KeyValue> &updates);
|
||||
|
||||
flat::NodeId getNodeId() const { return flat::NodeId(node_id()); }
|
||||
};
|
||||
} // namespace hf3fs::core
|
||||
Reference in New Issue
Block a user