feat(handlers): replace boltdb with sqlite in handlers

This commit is contained in:
hexxa 2022-09-03 20:24:45 +08:00 committed by Hexxa
parent 791848f75c
commit 085a3e4e10
14 changed files with 342 additions and 307 deletions

View file

@ -1,6 +1,7 @@
package main
import (
"context"
"fmt"
"os"
@ -17,7 +18,8 @@ func main() {
panic(err)
}
cfg, err := serverPkg.LoadCfg(args)
ctx := context.TODO()
cfg, err := serverPkg.LoadCfg(ctx, args)
if err != nil {
fmt.Printf("failed to load config: %s", err)
os.Exit(1)