aboutsummaryrefslogtreecommitdiff
path: root/appservice
diff options
context:
space:
mode:
authorS7evinK <2353100+S7evinK@users.noreply.github.com>2022-03-21 10:47:41 +0100
committerGitHub <noreply@github.com>2022-03-21 10:47:41 +0100
commit8336ce972ec75b07b62f7b382c0e1e405d549545 (patch)
tree6f1d59e957db04357754c712f188a26bc8aed4b6 /appservice
parente47dfe47865b3d4f3a086325d01f5c8d69f2b23f (diff)
Remove unused partition_offset_table (#2288)
Diffstat (limited to 'appservice')
-rw-r--r--appservice/storage/postgres/storage.go4
-rw-r--r--appservice/storage/sqlite3/storage.go4
2 files changed, 0 insertions, 8 deletions
diff --git a/appservice/storage/postgres/storage.go b/appservice/storage/postgres/storage.go
index d2c3e261..eaf947ff 100644
--- a/appservice/storage/postgres/storage.go
+++ b/appservice/storage/postgres/storage.go
@@ -28,7 +28,6 @@ import (
// Database stores events intended to be later sent to application services
type Database struct {
- sqlutil.PartitionOffsetStatements
events eventsStatements
txnID txnStatements
db *sql.DB
@@ -46,9 +45,6 @@ func NewDatabase(dbProperties *config.DatabaseOptions) (*Database, error) {
if err = result.prepare(); err != nil {
return nil, err
}
- if err = result.PartitionOffsetStatements.Prepare(result.db, result.writer, "appservice"); err != nil {
- return nil, err
- }
return &result, nil
}
diff --git a/appservice/storage/sqlite3/storage.go b/appservice/storage/sqlite3/storage.go
index 51bfe710..9260c7fe 100644
--- a/appservice/storage/sqlite3/storage.go
+++ b/appservice/storage/sqlite3/storage.go
@@ -27,7 +27,6 @@ import (
// Database stores events intended to be later sent to application services
type Database struct {
- sqlutil.PartitionOffsetStatements
events eventsStatements
txnID txnStatements
db *sql.DB
@@ -45,9 +44,6 @@ func NewDatabase(dbProperties *config.DatabaseOptions) (*Database, error) {
if err = result.prepare(); err != nil {
return nil, err
}
- if err = result.PartitionOffsetStatements.Prepare(result.db, result.writer, "appservice"); err != nil {
- return nil, err
- }
return &result, nil
}