Skip to content

Commit

Permalink
GH-985 Pass io_context to compile callback so it can use it to create…
Browse files Browse the repository at this point in the history
… a timer
  • Loading branch information
heifner committed Nov 12, 2024
1 parent b73fbc5 commit 49198a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class code_cache_base {
class code_cache_async : public code_cache_base {
public:
// called from async thread, provides executing_action_id of any compiles spawned by get_descriptor_for_code
using compile_complete_callback = std::function<void(uint64_t, fc::time_point)>;
using compile_complete_callback = std::function<void(boost::asio::io_context&, uint64_t, fc::time_point)>;

code_cache_async(const std::filesystem::path& data_dir, const eosvmoc::config& eosvmoc_config,
const chainbase::database& db, compile_complete_callback cb);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void code_cache_async::wait_on_compile_monitor_message() {
const auto& msg = std::get<wasm_compilation_result_message>(message);
_result_queue.push(msg);

_compile_complete_func(msg.executing_action_id, msg.queued_time);
_compile_complete_func(_ctx, msg.executing_action_id, msg.queued_time);

process_queued_compiles();

Expand Down

0 comments on commit 49198a0

Please sign in to comment.