Remove Hydra::Helper::nix::txn_do from the Perl code
To quote the function's comment: Awful hack to handle timeouts in SQLite: just retry the transaction. DBD::SQLite *has* a 30 second retry window, but apparently it doesn't work. Since SQLite is now dropped entirely, this wrapper can be removed completely.
This commit is contained in:
@@ -163,7 +163,7 @@ sub register :Local Args(0) {
|
||||
error($c, "Your user name is already taken.")
|
||||
if $c->find_user({ username => $userName });
|
||||
|
||||
txn_do($c->model('DB')->schema, sub {
|
||||
$c->model('DB')->schema->txn_do(sub {
|
||||
my $user = $c->model('DB::Users')->create(
|
||||
{ username => $userName
|
||||
, password => "!"
|
||||
@@ -261,7 +261,7 @@ sub edit_PUT {
|
||||
return;
|
||||
}
|
||||
|
||||
txn_do($c->model('DB')->schema, sub {
|
||||
$c->model('Db')->schema->txn_do(sub {
|
||||
updatePreferences($c, $user);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user