feat(handlers): replace boltdb with sqlite in handlers
This commit is contained in:
parent
791848f75c
commit
085a3e4e10
14 changed files with 342 additions and 307 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue