Threaded gdbm #76

Merged
lash merged 16 commits from lash/thread-gdbm into master 2024-09-23 21:25:38 +02:00
4 changed files with 8 additions and 12 deletions
Showing only changes of commit 84422684c5 - Show all commits

View File

@ -98,9 +98,7 @@ func main() {
cfg.EngineDebug = true
}
resourceDir := scriptDir
menuStorageService := storage.NewMenuStorageService(dbDir, resourceDir)
rs, err := menuStorageService.GetResource(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
@ -113,7 +111,7 @@ func main() {
os.Exit(1)
}
userdataStore := menuStorageService.GetUserdataDb(ctx)
userdataStore, err := menuStorageService.GetUserdataDb(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)
@ -126,7 +124,7 @@ func main() {
}
lhs, err := handlers.NewLocalHandlerService(pfp, true, dbResource, cfg, rs)
lhs.WithDataStore(&userdataStore)
lhs.SetDataStore(&userdataStore)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())

View File

@ -71,7 +71,6 @@ func main() {
cfg.EngineDebug = true
}
resourceDir := scriptDir
menuStorageService := storage.NewMenuStorageService(dbDir, resourceDir)
rs, err := menuStorageService.GetResource(ctx)
if err != nil {
@ -85,7 +84,7 @@ func main() {
os.Exit(1)
}
userdataStore := menuStorageService.GetUserdataDb(ctx)
userdataStore, err := menuStorageService.GetUserdataDb(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)
@ -98,7 +97,7 @@ func main() {
}
lhs, err := handlers.NewLocalHandlerService(pfp, true, dbResource, cfg, rs)
lhs.WithDataStore(&userdataStore)
lhs.SetDataStore(&userdataStore)
hl, err := lhs.GetHandler()
if err != nil {

View File

@ -59,7 +59,6 @@ func main() {
cfg.EngineDebug = true
}
resourceDir := scriptDir
menuStorageService := storage.NewMenuStorageService(dbDir, resourceDir)
rs, err := menuStorageService.GetResource(ctx)
if err != nil {
@ -73,7 +72,7 @@ func main() {
os.Exit(1)
}
userdataStore := menuStorageService.GetUserdataDb(ctx)
userdataStore, err := menuStorageService.GetUserdataDb(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)
@ -86,7 +85,7 @@ func main() {
}
lhs, err := handlers.NewLocalHandlerService(pfp, true, dbResource, cfg, rs)
lhs.WithDataStore(&userdataStore)
lhs.SetDataStore(&userdataStore)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
@ -99,7 +98,7 @@ func main() {
os.Exit(1)
}
stateStore, err := menuStorageService.GetStateStore(dbDir, ctx)
stateStore, err := menuStorageService.GetStateStore(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)

View File

@ -64,7 +64,7 @@ func main() {
os.Exit(1)
}
userdatastore := menuStorageService.GetUserdataDb(ctx)
userdatastore, err := menuStorageService.GetUserdataDb(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)