Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tpetr committed Sep 14, 2013
1 parent 2864c15 commit 81f31c6
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ class EndpointsResource @Inject()(
@GET
@Produces(Array(MediaType.APPLICATION_JSON))
def endpointsJson() = {
(for (app <- schedulerService.listApps) yield {
var upstreams = for (task <- taskTracker.get(app.id)) yield "%s:%d".format(task.getHost, task.getPort)
app.id -> Map("port" -> app.port, "upstreams" -> upstreams)
}) toMap
for (app <- schedulerService.listApps) yield {
Map("id" -> app.id, "instances" -> taskTracker.get(app.id))
}
}
}

0 comments on commit 81f31c6

Please sign in to comment.