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
// limitations under the License.
// +build !wasm
package presence
import (

View file

@ -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)