Skip to content

Commit 094d11d

Browse files
Use a single line
1 parent 2fb524f commit 094d11d

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

go/logic/server.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,11 @@ help # This message
179179
return NoPrintStatusRule, fmt.Errorf("coordinates are read-only")
180180
}
181181
case "hosts":
182-
fields := map[string]interface{}{
183-
"Applier": this.migrationContext.GetApplierHostname(),
184-
"Hostname": this.migrationContext.Hostname,
185-
"Inspector": this.migrationContext.GetInspectorHostname(),
186-
}
187-
for key, val := range fields {
188-
fmt.Fprintf(writer, "%s: %v", key, val)
189-
}
182+
fmt.Fprintf(writer, "Hostname: %s, Applier: %s, Inspector: %s\n",
183+
this.migrationContext.GetApplierHostname(),
184+
this.migrationContext.Hostname,
185+
this.migrationContext.GetInspectorHostname(),
186+
)
190187
return NoPrintStatusRule, nil
191188
case "chunk-size":
192189
{

0 commit comments

Comments
 (0)