Skip to content

Commit dee942a

Browse files
committed
fix: mutex not needed for transaction
1 parent e5f08ff commit dee942a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/src/surreal_wasm_mutex.dart

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,4 @@ class SurrealWasmMutex extends Surreal {
150150
return super.delete(resource);
151151
});
152152
}
153-
154-
@override
155-
Future<Object?> transaction(
156-
Future<void> Function(Transaction txn) action, {
157-
Duration timeout = const Duration(seconds: 5),
158-
}) async {
159-
return _mutex.protect(() async {
160-
return super.transaction(action, timeout: timeout);
161-
});
162-
}
163153
}

0 commit comments

Comments
 (0)