Fix copy&paste error

This commit is contained in:
Till Faelligen 2021-07-28 17:27:57 +02:00
parent 6f6a1d32c3
commit 9f5f41c290
2 changed files with 4 additions and 6 deletions

View file

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !wasm
package presence package presence
import ( import (

View file

@ -12,20 +12,16 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package devices package presence
import ( import (
"fmt" "fmt"
"github.com/matrix-org/dendrite/setup/config" "github.com/matrix-org/dendrite/setup/config"
"github.com/matrix-org/dendrite/userapi/storage/presence/sqlite3" "github.com/matrix-org/dendrite/userapi/storage/presence/sqlite3"
"github.com/matrix-org/gomatrixserverlib"
) )
func NewDatabase( func NewDatabase(dbProperties *config.DatabaseOptions) (Database, error) {
dbProperties *config.DatabaseOptions,
serverName gomatrixserverlib.ServerName,
) (Database, error) {
switch { switch {
case dbProperties.ConnectionString.IsSQLite(): case dbProperties.ConnectionString.IsSQLite():
return sqlite3.NewDatabase(dbProperties) return sqlite3.NewDatabase(dbProperties)