fix(registry): ensure we can run telegram and webconnectivity (#862)
I made a mistake while adapting code from an experimental branch thus
breaking these two experiments because of interface conversion.
This diff fixes it.
While there, remove the panic trap for miniooni. Because miniooni is
an experimental tool, we want to see the full panic text, which definitely
leads to a more pleasant and effective debugging experience.
See https://github.com/ooni/probe/issues/2216 for context on why we
were trying to change how we register experiments.
The broken commit is 6a0ae5c70b
.
This commit is contained in:
parent
3cc2ce0b81
commit
4e99e5030a
|
@ -6,16 +6,6 @@ package main
|
||||||
// Main function
|
// Main function
|
||||||
//
|
//
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
"os"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
defer func() {
|
|
||||||
if s := recover(); s != nil {
|
|
||||||
fmt.Fprintf(os.Stderr, "FATAL: %s\n", s)
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
Main()
|
Main()
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ func init() {
|
||||||
config.(telegram.Config),
|
config.(telegram.Config),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
config: &telegram.Config{},
|
config: telegram.Config{},
|
||||||
interruptible: false,
|
interruptible: false,
|
||||||
inputPolicy: model.InputNone,
|
inputPolicy: model.InputNone,
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ func init() {
|
||||||
config.(webconnectivity.Config),
|
config.(webconnectivity.Config),
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
config: &webconnectivity.Config{},
|
config: webconnectivity.Config{},
|
||||||
interruptible: false,
|
interruptible: false,
|
||||||
inputPolicy: model.InputOrQueryBackend,
|
inputPolicy: model.InputOrQueryBackend,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user