Skip to content

Commit

Permalink
Allow VFS running without database
Browse files Browse the repository at this point in the history
  • Loading branch information
sas1024 committed Dec 6, 2024
1 parent 75b117c commit 286a09c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/vfssrv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ func authMiddleware(next http.Handler) http.Handler {
func initRepo() (*db.VfsRepo, *pg.DB) {
if flDbConn == nil {
return nil, nil
} else if *flDbConn == "" {
return nil, nil
}

cfg, err := pg.ParseURL(*flDbConn)
Expand Down

0 comments on commit 286a09c

Please sign in to comment.