fix: apply staticcheck suggestions (#262)
Preliminary work done as part of https://github.com/ooni/probe/issues/1299
This commit is contained in:
parent
9c820cf855
commit
576059b3fa
2 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ func (c *Candidate) try(ctx context.Context, sess Session) {
|
|||
}
|
||||
start := time.Now()
|
||||
testhelpers, err := client.GetTestHelpers(ctx)
|
||||
c.Duration = time.Now().Sub(start)
|
||||
c.Duration = time.Since(start)
|
||||
c.Err = err
|
||||
c.TestHelpers = testhelpers
|
||||
sess.Logger().Debugf("probe services: %+v: %+v %s", c.Endpoint, err, c.Duration)
|
||||
|
|
|
|||
Loading…
Reference in a new issue