Skip to content

Commit

Permalink
Merge pull request 3mcloud#30 from 3mcloud/feature/transact_fix
Browse files Browse the repository at this point in the history
fix connection for transactions
  • Loading branch information
jjf130 committed Dec 14, 2020
2 parents b63b60d + 8d27659 commit 6d73894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions falcano/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,14 +705,14 @@ def transact_write(cls):
'''
Returns a TransactWrite
'''
return TransactWrite(cls, connection=cls._connection)
return TransactWrite(cls, connection=cls.connection())

@classmethod
def transact_get(cls):
'''
Returns a TransactGet
'''
return TransactGet(connection=cls._connection)
return TransactGet(connection=cls.connection())

@classmethod
def batch_write(cls, auto_commit: bool = True):
Expand Down

0 comments on commit 6d73894

Please sign in to comment.