Update deps and pin to ooni/probe-engine@v0.8.0 (#118)
Part of https://github.com/ooni/probe/issues/1030
This commit is contained in:
parent
fd6fe262ec
commit
1d5c913019
5 changed files with 64 additions and 48 deletions
|
|
@ -11,6 +11,7 @@ import (
|
|||
"github.com/ooni/probe-cli/internal/database"
|
||||
"github.com/ooni/probe-cli/internal/output"
|
||||
engine "github.com/ooni/probe-engine"
|
||||
"github.com/ooni/probe-engine/model"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
|
@ -72,9 +73,9 @@ func (c *Controller) SetNettestIndex(i, n int) {
|
|||
func (c *Controller) Run(builder *engine.ExperimentBuilder, inputs []string) error {
|
||||
// This will configure the controller as handler for the callbacks
|
||||
// called by ooni/probe-engine/experiment.Experiment.
|
||||
builder.SetCallbacks(engine.Callbacks(c))
|
||||
builder.SetCallbacks(model.ExperimentCallbacks(c))
|
||||
c.numInputs = len(inputs)
|
||||
exp := builder.Build()
|
||||
exp := builder.NewExperiment()
|
||||
|
||||
c.msmts = make(map[int64]*database.Measurement)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue