// newRemoteRunner returns a new remoteRunner. Caller should ensure
// Close() is called to release resources.
func newRemoteRunner(uuid string, wkr *worker) *remoteRunner {
- // In order to stay compatible with recent dev/experimental
- // versions of crunch-run, we need to pass a map with string
- // values only, so we JSON-encode the instance type
- // record. Once worker images are updated we can skip this and
- // just pass {"InstanceType": wkr.instType}.
+ // Send the instance type record as a JSON doc so crunch-run
+ // can log it.
var instJSON bytes.Buffer
enc := json.NewEncoder(&instJSON)
enc.SetIndent("", " ")