Fix build errors

This commit is contained in:
Luca 2022-07-23 00:36:28 +02:00
parent 0cb344ff1f
commit 8dd0a1f3be
2 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@ func NewClient(config *config.MatrixConfig) (*mautrix.Client, error) {
return nil, err return nil, err
} }
_, err := client.Login(&mautrix.ReqLogin{ _, err = client.Login(&mautrix.ReqLogin{
Type: mautrix.AuthTypePassword, Type: mautrix.AuthTypePassword,
Identifier: mautrix.UserIdentifier{ Identifier: mautrix.UserIdentifier{
Type: mautrix.IdentifierTypeUser, Type: mautrix.IdentifierTypeUser,

View File

@ -2,6 +2,7 @@ package main
import ( import (
"log" "log"
"os"
"git.luj0ga.de/franconian/matrix-pretix/internal/config" "git.luj0ga.de/franconian/matrix-pretix/internal/config"
"git.luj0ga.de/franconian/matrix-pretix/internal/matrix" "git.luj0ga.de/franconian/matrix-pretix/internal/matrix"
@ -21,4 +22,5 @@ func main() {
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
_ = client
} }