]> git.ktnx.net Git - mobile-ledger.git/commitdiff
drop 'synchronized' modifier for getDatabase
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 24 Mar 2019 17:11:48 +0000 (19:11 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 25 Mar 2019 06:17:36 +0000 (06:17 +0000)
it was necessary to guarantee that no two connections were created because
the connection is created in getDatabase

by moving the connection creatin to the init() a high profile method
(getDatabase) gets faster. init() is called only once anyway


No differences found