/go/performance/utils/dolt_builder/run.go: have run accept context

This commit is contained in:
coffeegoddd
2024-01-04 10:07:46 -08:00
parent 97b8e2cb9a
commit 1db2736bbe
2 changed files with 3 additions and 4 deletions

View File

@@ -15,6 +15,7 @@
package main
import (
"context"
"fmt"
"log"
"os"
@@ -36,7 +37,7 @@ func main() {
os.Exit(2)
}
err := builder.Run(commitList)
err := builder.Run(context.Background(), commitList)
if err != nil {
log.Fatal(err)
}

View File

@@ -29,9 +29,7 @@ import (
const envDoltBin = "DOLT_BIN"
func Run(commitList []string) error {
parentCtx := context.Background()
func Run(parentCtx context.Context, commitList []string) error {
doltBin, err := getDoltBin()
if err != nil {
return err