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:
Simone Basso 2022-08-17 12:17:52 +02:00 committed by GitHub
parent 3cc2ce0b81
commit 4e99e5030a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 12 deletions

View File

@ -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()
} }

View File

@ -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,
} }

View File

@ -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,
} }