Create context object for remote server main function.

This commit is contained in:
Nick Tobey
2025-01-23 13:00:47 -08:00
parent d43ce7f159
commit 849e5c0b67

View File

@@ -74,7 +74,8 @@ func main() {
var dbCache remotesrv.DBCache
if *repoModeParam {
dEnv := env.Load(context.Background(), env.GetCurrentUserHomeDir, fs, doltdb.LocalDirDoltDB, "remotesrv")
ctx := context.Background()
dEnv := env.Load(ctx, env.GetCurrentUserHomeDir, fs, doltdb.LocalDirDoltDB, "remotesrv")
if !dEnv.Valid() {
log.Fatalln("repo-mode failed to load repository")
}