Skip to content
This repository was archived by the owner on Jul 11, 2021. It is now read-only.

Commit 61eced2

Browse files
committed
better explaination of how to use _rc
1 parent 68717da commit 61eced2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sync_engine/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ pub extern "C" fn ExecStatementNow(
357357
),
358358
Ok(dbkey) => {
359359
let result = {
360-
// rc must be
361-
// 1. Define
362-
// 2. Dropped before we forget the db key
360+
// _rc must be
361+
// 1. Define for the call to exec_statement() and .reply(&context)
362+
// 2. Dropped before we forget the `dbkey`
363363
let _rc = dbkey
364364
.loop_data
365365
.set_rc(Context::no_client());

0 commit comments

Comments
 (0)