Merge branch '15305-keep-balance-bytes'
[arvados.git] / lib / dispatchcloud / worker / runner.go
index 9cd1d8d6bc127bc7418c3c60f6eb25b6ada18ea8..e819a6036b341d5d2bbe28a242292296b5b36cd2 100644 (file)
@@ -35,11 +35,8 @@ type remoteRunner struct {
 // 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("", "    ")