From 9f5f41c29062deb7e6eaa3a4a0573ade905fc7fe Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Wed, 28 Jul 2021 17:27:57 +0200 Subject: [PATCH] Fix copy&paste error --- userapi/storage/presence/storage.go | 2 ++ userapi/storage/presence/storage_wasm.go | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/userapi/storage/presence/storage.go b/userapi/storage/presence/storage.go index dc869f0a4..e5d784756 100644 --- a/userapi/storage/presence/storage.go +++ b/userapi/storage/presence/storage.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !wasm + package presence import ( diff --git a/userapi/storage/presence/storage_wasm.go b/userapi/storage/presence/storage_wasm.go index 0763b5217..54c9eea2d 100644 --- a/userapi/storage/presence/storage_wasm.go +++ b/userapi/storage/presence/storage_wasm.go @@ -12,20 +12,16 @@ // See the License for the specific language governing permissions and // limitations under the License. -package devices +package presence import ( "fmt" "github.com/matrix-org/dendrite/setup/config" "github.com/matrix-org/dendrite/userapi/storage/presence/sqlite3" - "github.com/matrix-org/gomatrixserverlib" ) -func NewDatabase( - dbProperties *config.DatabaseOptions, - serverName gomatrixserverlib.ServerName, -) (Database, error) { +func NewDatabase(dbProperties *config.DatabaseOptions) (Database, error) { switch { case dbProperties.ConnectionString.IsSQLite(): return sqlite3.NewDatabase(dbProperties)