mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-26 10:37:04 -06:00
/go/performance/utils/dolt_builder/run.go: have run accept context
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user