mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-05 16:15:41 -06:00
Create context object for remote server main function.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user