Use a single line

This commit is contained in:
Tim Vaillancourt 2021-04-02 01:58:06 +02:00
parent 2fb524f43a
commit 094d11d722

View File

@ -179,14 +179,11 @@ help # This message
return NoPrintStatusRule, fmt.Errorf("coordinates are read-only")
}
case "hosts":
fields := map[string]interface{}{
"Applier": this.migrationContext.GetApplierHostname(),
"Hostname": this.migrationContext.Hostname,
"Inspector": this.migrationContext.GetInspectorHostname(),
}
for key, val := range fields {
fmt.Fprintf(writer, "%s: %v", key, val)
}
fmt.Fprintf(writer, "Hostname: %s, Applier: %s, Inspector: %s\n",
this.migrationContext.GetApplierHostname(),
this.migrationContext.Hostname,
this.migrationContext.GetInspectorHostname(),
)
return NoPrintStatusRule, nil
case "chunk-size":
{