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

refactor: tarantool::eval -> tarantool::exec

parent d3715381
No related branches found
No related tags found
1 merge request!244attempt at topology governor
......@@ -283,7 +283,7 @@ fn picolib_setup(args: &args::Run) {
}
fn init_handlers() {
tarantool::eval(
tarantool::exec(
r#"
box.schema.user.grant('guest', 'super', nil, nil, {if_not_exists = true})
"#,
......@@ -1033,7 +1033,7 @@ fn test_one(t: &InnerTest) {
tarantool::set_cfg(&cfg);
traft::Storage::init_schema(traft::PeerStorage::new().unwrap());
tarantool::eval(
tarantool::exec(
r#"
box.schema.user.grant('guest', 'super', nil, nil, {if_not_exists = true})
"#,
......
......@@ -44,7 +44,7 @@ macro_rules! declare_cfunc {
fn used(_: unsafe extern "C" fn(FunctionCtx, FunctionArgs) -> c_int) {}
used($($func_name)+);
$crate::tarantool::eval(concat!(
$crate::tarantool::exec(concat!(
"box.schema.func.create('.",
$crate::stringify_last_token!($($func_name)+),
"', {
......@@ -163,7 +163,7 @@ pub fn set_cfg(cfg: &Cfg) {
}
#[track_caller]
pub fn eval(code: &str) -> Result<(), LuaError> {
pub fn exec(code: &str) -> Result<(), LuaError> {
let l = lua_state();
l.exec(code)
}
......
......@@ -271,7 +271,7 @@ pub struct OpEvalLua {
impl OpResult for OpEvalLua {
type Result = Result<(), LuaError>;
fn result(&self) -> Self::Result {
crate::tarantool::eval(&self.code)
crate::tarantool::exec(&self.code)
}
}
......
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