pass account service as a param

This commit is contained in:
2024-10-08 00:03:29 +03:00
parent d7bfdc62e9
commit d01af48216
3 changed files with 10 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ import (
"git.grassecon.net/urdt/ussd/internal/handlers"
httpserver "git.grassecon.net/urdt/ussd/internal/http"
"git.grassecon.net/urdt/ussd/internal/storage"
"git.grassecon.net/urdt/ussd/internal/handlers/server"
)
var (
@@ -88,7 +89,9 @@ func main() {
os.Exit(1)
}
hl, err := lhs.GetHandler()
accountService := server.AccountService{}
hl, err := lhs.GetHandler(&accountService)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)