MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / worker_to_db

Method worker_to_db

runners/proxy/ProxyRunner.cpp:730–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730void ProxyRunner::worker_to_db(ProxyWorkerInfo &worker) {
731 auto key = PSTRING() << "worker_" << worker.worker_owner_address().rserialize(true);
732 auto value = cocoon::serialize_tl_object(worker.serialize(), true);
733 set_to_db(key, value.as_slice());
734 worker.written_to_db();
735}
736
737void ProxyRunner::config_to_db(std::shared_ptr<RunnerConfig> config) {
738 std::vector<ton::tl_object_ptr<cocoon_api::proxyDb_pendingBlockchainSeqnoCommit>> seq_commits;

Callers

nothing calls this directly

Calls 4

serialize_tl_objectFunction · 0.85
as_sliceMethod · 0.80
serializeMethod · 0.45
written_to_dbMethod · 0.45

Tested by

no test coverage detected