u
This commit is contained in:
@@ -7,11 +7,11 @@ class OrderLog {
|
||||
public:
|
||||
void open(const std::string& path);
|
||||
void close();
|
||||
int log_order(const std::string& order_json);
|
||||
std::string get_max_external_id() const;
|
||||
void log_order(const std::string& order_json, const std::string& external_id = "");
|
||||
private:
|
||||
FILE* fp_ = nullptr;
|
||||
std::mutex mutex_;
|
||||
int sequence_ = 0;
|
||||
int max_external_id_ = 0;
|
||||
};
|
||||
|
||||
extern OrderLog g_order_log;
|
||||
|
||||
Reference in New Issue
Block a user