diff --git a/go/utils/remotesrv/main.go b/go/utils/remotesrv/main.go index 1c48412390..f303463290 100644 --- a/go/utils/remotesrv/main.go +++ b/go/utils/remotesrv/main.go @@ -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") }