server: use postgres instead of scylla, easier to host
This commit is contained in:
+4
-2
@@ -1,6 +1,7 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"git.dubyatp.xyz/dubyatp/scannerbot/server/db"
|
||||
@@ -8,8 +9,9 @@ import (
|
||||
)
|
||||
|
||||
func Start() {
|
||||
db.InitScyllaDB()
|
||||
defer db.CloseScyllaDB()
|
||||
ctx := context.Background()
|
||||
db.InitPostgres(ctx)
|
||||
defer db.ClosePostgres()
|
||||
|
||||
r := chi.NewRouter()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user