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 /keyserver | |
parent | e47dfe47865b3d4f3a086325d01f5c8d69f2b23f (diff) |
Remove unused partition_offset_table (#2288)
Diffstat (limited to 'keyserver')
-rw-r--r-- | keyserver/storage/postgres/storage.go | 3 | ||||
-rw-r--r-- | keyserver/storage/shared/storage.go | 1 | ||||
-rw-r--r-- | keyserver/storage/sqlite3/storage.go | 3 |
3 files changed, 0 insertions, 7 deletions
diff --git a/keyserver/storage/postgres/storage.go b/keyserver/storage/postgres/storage.go index b71cc1a7..13698688 100644 --- a/keyserver/storage/postgres/storage.go +++ b/keyserver/storage/postgres/storage.go @@ -70,8 +70,5 @@ func NewDatabase(dbProperties *config.DatabaseOptions) (*shared.Database, error) CrossSigningKeysTable: csk, CrossSigningSigsTable: css, } - if err = d.PartitionOffsetStatements.Prepare(db, d.Writer, "keyserver"); err != nil { - return nil, err - } return d, nil } diff --git a/keyserver/storage/shared/storage.go b/keyserver/storage/shared/storage.go index 03215b93..7ba0b3ea 100644 --- a/keyserver/storage/shared/storage.go +++ b/keyserver/storage/shared/storage.go @@ -36,7 +36,6 @@ type Database struct { StaleDeviceListsTable tables.StaleDeviceLists CrossSigningKeysTable tables.CrossSigningKeys CrossSigningSigsTable tables.CrossSigningSigs - sqlutil.PartitionOffsetStatements } func (d *Database) ExistingOneTimeKeys(ctx context.Context, userID, deviceID string, keyIDsWithAlgorithms []string) (map[string]json.RawMessage, error) { diff --git a/keyserver/storage/sqlite3/storage.go b/keyserver/storage/sqlite3/storage.go index 50ce00d0..0e0adcee 100644 --- a/keyserver/storage/sqlite3/storage.go +++ b/keyserver/storage/sqlite3/storage.go @@ -69,8 +69,5 @@ func NewDatabase(dbProperties *config.DatabaseOptions) (*shared.Database, error) CrossSigningKeysTable: csk, CrossSigningSigsTable: css, } - if err = d.PartitionOffsetStatements.Prepare(db, d.Writer, "keyserver"); err != nil { - return nil, err - } return d, nil } |