fix(oonimkall): export CheckInConfig.RunType (#752)

This commit cherry-picks e3e3b61 from release/3.15.

See https://github.com/ooni/probe/issues/2110 for context.
This commit is contained in:
Simone Basso 2022-05-23 18:41:34 +02:00 committed by GitHub
commit 83cf447edd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -366,7 +366,7 @@ type CheckInConfig struct {
// RunType indicates whether this is an automated (model.RunTypeTimed) run
// or otherwise a manual run initiated by the user.
RunType model.RunType
RunType string
// SoftwareName is the name of the application.
SoftwareName string
@ -472,7 +472,7 @@ func (sess *Session) CheckIn(ctx *Context, config *CheckInConfig) (*CheckInInfo,
Platform: config.Platform,
ProbeASN: info.ASNString(),
ProbeCC: info.CountryCode,
RunType: config.RunType,
RunType: model.RunType(config.RunType),
SoftwareVersion: config.SoftwareVersion,
WebConnectivity: config.WebConnectivity.toModel(),
}