diff options
author | S7evinK <2353100+S7evinK@users.noreply.github.com> | 2022-03-21 10:47:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 10:47:41 +0100 |
commit | 8336ce972ec75b07b62f7b382c0e1e405d549545 (patch) | |
tree | 6f1d59e957db04357754c712f188a26bc8aed4b6 /syncapi/storage | |
parent | e47dfe47865b3d4f3a086325d01f5c8d69f2b23f (diff) |
Remove unused partition_offset_table (#2288)
Diffstat (limited to 'syncapi/storage')
-rw-r--r-- | syncapi/storage/postgres/syncserver.go | 4 | ||||
-rw-r--r-- | syncapi/storage/sqlite3/syncserver.go | 8 |
2 files changed, 2 insertions, 10 deletions
diff --git a/syncapi/storage/postgres/syncserver.go b/syncapi/storage/postgres/syncserver.go index 60fe5b54..4e4b5c0b 100644 --- a/syncapi/storage/postgres/syncserver.go +++ b/syncapi/storage/postgres/syncserver.go @@ -32,7 +32,6 @@ type SyncServerDatasource struct { shared.Database db *sql.DB writer sqlutil.Writer - sqlutil.PartitionOffsetStatements } // NewDatabase creates a new sync server database @@ -43,9 +42,6 @@ func NewDatabase(dbProperties *config.DatabaseOptions) (*SyncServerDatasource, e return nil, err } d.writer = sqlutil.NewDummyWriter() - if err = d.PartitionOffsetStatements.Prepare(d.db, d.writer, "syncapi"); err != nil { - return nil, err - } accountData, err := NewPostgresAccountDataTable(d.db) if err != nil { return nil, err diff --git a/syncapi/storage/sqlite3/syncserver.go b/syncapi/storage/sqlite3/syncserver.go index f5ae9fdd..cb7e3b46 100644 --- a/syncapi/storage/sqlite3/syncserver.go +++ b/syncapi/storage/sqlite3/syncserver.go @@ -28,9 +28,8 @@ import ( // both the database for PDUs and caches for EDUs. type SyncServerDatasource struct { shared.Database - db *sql.DB - writer sqlutil.Writer - sqlutil.PartitionOffsetStatements + db *sql.DB + writer sqlutil.Writer streamID streamIDStatements } @@ -50,9 +49,6 @@ func NewDatabase(dbProperties *config.DatabaseOptions) (*SyncServerDatasource, e } func (d *SyncServerDatasource) prepare(dbProperties *config.DatabaseOptions) (err error) { - if err = d.PartitionOffsetStatements.Prepare(d.db, d.writer, "syncapi"); err != nil { - return err - } if err = d.streamID.prepare(d.db); err != nil { return err } |