bugfix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-24 10:15:04 +11:00
parent 789805b587
commit 6c432f7cb1
3 changed files with 10 additions and 5 deletions

10
main.go
View File

@@ -1,16 +1,17 @@
package main
import (
"context"
"fmt"
"os"
"runtime"
"time"
"mocksnow/db"
"mocksnow/internal/settings"
utils "mocksnow/internal/utils"
"mocksnow/log"
"mocksnow/server"
"mocksnow/server/router"
"os"
"runtime"
"time"
"github.com/go-co-op/gocron/v2"
"github.com/joho/godotenv"
@@ -38,6 +39,7 @@ func main() {
log.GetOutput(),
)
_, cancel := context.WithCancel(context.Background())
//ctx, cancel := context.WithCancel(context.Background())
// Configure database
@@ -217,7 +219,7 @@ func main() {
svr := server.New(
logger,
c,
//cancel,
cancel,
bindAddress,
server.WithRouter(r),
server.SetTls(bindDisableTls),