Skip to content
Snippets Groups Projects
Commit 1a3fa2bd authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon: Committed by Georgy Moshkin
Browse files

chore: remove old `inspect` & `inspect_idx` helper function

parent c2c654f7
No related branches found
No related tags found
1 merge request!402chore: remove old `inspect` & `inspect_idx` helper function
Pipeline #13989 failed
......@@ -249,36 +249,6 @@ fn picolib_setup(args: &args::Run) {
tlua::function0(tlog::clear_highlight),
)
.unwrap();
{
l.exec(
r#"
function inspect()
return
{raft_log = pico.raft_log()},
{raft_state = box.space.raft_state:fselect()},
{raft_group = box.space.raft_group:fselect()}
end
function inspect_idx(idx)
local digest = require('digest')
local msgpack = require('msgpack')
local row = box.space.raft_log:get(idx)
local function decode(v)
local ok, ret = pcall(function()
return msgpack.decode(digest.base64_decode(v))
end)
return ok and ret or "???"
end
return {
decode(row.data),
decode(row.ctx),
nil
}
end
"#,
)
.unwrap();
}
#[derive(::tarantool::tlua::LuaRead, Default, Clone, Copy)]
enum Justify {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment