Fix build errors
This commit is contained in:
parent
0cb344ff1f
commit
8dd0a1f3be
|
@ -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,
|
||||||
|
|
2
main.go
2
main.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue