Skip to content

Commit 0b59aaf

Browse files
committed
a bit of refactoring
1 parent 8eaf375 commit 0b59aaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cubejs-backend-native/src/node_export.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ fn parse_cubestore_ws_result_message(mut cx: FunctionContext) -> JsResult<JsProm
540540
let msg_data = msg.as_slice(&cx).to_vec();
541541

542542
let promise = cx
543-
.task(move || CubeStoreResult::new(&msg_data))
543+
.task(move || CubeStoreResult::from_fb(&msg_data))
544544
.promise(move |mut cx, res| match res {
545545
Ok(result) => Ok(cx.boxed(Arc::new(result))),
546546
Err(err) => cx.throw_error(err.to_string()),

rust/cubeorchestrator/src/cubestore_message_parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub struct CubeStoreResult {
3636
impl Finalize for CubeStoreResult {}
3737

3838
impl CubeStoreResult {
39-
pub fn new(msg_data: &[u8]) -> Result<Self, ParseError> {
39+
pub fn from_fb(msg_data: &[u8]) -> Result<Self, ParseError> {
4040
let mut result = CubeStoreResult {
4141
columns: vec![],
4242
rows: vec![],

0 commit comments

Comments
 (0)