add some ctx cleanup

This commit is contained in:
2024-10-31 13:08:35 +01:00
parent a4092298fb
commit 14f751af0b
3 changed files with 18 additions and 1 deletions

View File

@ -11,8 +11,8 @@
#include <limits>
#include <iostream>
static std::unique_ptr<MessageFragmentStore> g_mfs = nullptr;
static std::unique_ptr<Backends::FilesystemStorage> g_fsb = nullptr;
static std::unique_ptr<MessageFragmentStore> g_mfs = nullptr;
constexpr const char* plugin_name = "MessageFragmentStore";
@ -62,6 +62,7 @@ SOLANA_PLUGIN_EXPORT void solana_plugin_stop(void) {
}
SOLANA_PLUGIN_EXPORT float solana_plugin_tick(float time_delta) {
// HACK
static bool scan_triggered {false};
if (!scan_triggered) {
g_fsb->scanAsync();