Skip to content
Snippets Groups Projects
  • Shamil K Muhammed's avatar
    Use the `with` statement on the connection object · 3957ea7d
    Shamil K Muhammed authored
    Before, v.0.0.3, the connection was reinitialized everytime a new
    auth request was sent to the module. But after that version, things
    changed and a single connection was used.
    
    This caused #2. It was because the transactions weren't commited
    before querying again. Which stops the auth provider from getting
    new data. So, the context manager is also used on the connection
    everytime a query is sent to ensure the transactions are committed.
    
    So, hopefully this commit fixes #2
    Unverified
    3957ea7d
Forked from Shamil K / synapse-diaspora-auth
Source project has a limited visibility.