mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 05:42:46 +00:00
Fix duplicate writers (#1376)
* Fix writers * Don't use writers in both shared and sqlite3
This commit is contained in:
parent
89c772fb78
commit
a9f4d83d30
4 changed files with 19 additions and 25 deletions
|
@ -80,7 +80,7 @@ func NewDatabase(dbProperties *config.DatabaseOptions) (*SyncServerDatasource, e
|
|||
}
|
||||
d.Database = shared.Database{
|
||||
DB: d.db,
|
||||
Writer: sqlutil.NewDummyWriter(),
|
||||
Writer: d.writer,
|
||||
Invites: invites,
|
||||
AccountData: accountData,
|
||||
OutputEvents: events,
|
||||
|
|
|
@ -93,7 +93,7 @@ func (d *SyncServerDatasource) prepare() (err error) {
|
|||
}
|
||||
d.Database = shared.Database{
|
||||
DB: d.db,
|
||||
Writer: sqlutil.NewExclusiveWriter(),
|
||||
Writer: d.writer,
|
||||
Invites: invites,
|
||||
AccountData: accountData,
|
||||
OutputEvents: events,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue