Remove unnecessary connection chain step

This commit is contained in:
lash
2025-01-04 21:02:08 +00:00
parent 3a9f3fa373
commit cc9760125a
10 changed files with 11 additions and 35 deletions

View File

@@ -91,8 +91,7 @@ func main() {
cfg.EngineDebug = true
}
menuStorageService := storage.NewMenuStorageService(resourceDir)
menuStorageService = menuStorageService.WithConn(connData)
menuStorageService := storage.NewMenuStorageService(connData, resourceDir)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)