Skip to content

Commit

Permalink
Merge pull request #369 from stellar/horizon-perf-session-2018-1
Browse files Browse the repository at this point in the history
Remove in-request call to stellar-core in the root resource; Fixes a stall (of up to 5 seconds).
  • Loading branch information
nullstyle authored Mar 21, 2018
2 parents e64c35d + 0329443 commit 71ef94e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions services/horizon/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ file. This project adheres to [Semantic Versioning](http://semver.org/).
As this project is pre 1.0, breaking changes may happen for minor version
bumps. A breaking change will get clearly notified in this log.

## v0.12.3 - 2017-03-20

### Bug fixes

- Fix a service stutter caused by excessive `info` commands being issued from the root endpoint.


## v0.12.2 - 2017-03-14

This release is a bug fix release for v0.12.1 and v0.12.2. *Please see the upgrade notes below if you did not already migrate your db for v0.12.0*
Expand Down
2 changes: 0 additions & 2 deletions services/horizon/internal/actions_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ type RootAction struct {

// JSON renders the json response for RootAction
func (action *RootAction) JSON() {
action.App.UpdateStellarCoreInfo()

var res resource.Root
res.Populate(
action.Ctx,
Expand Down
1 change: 1 addition & 0 deletions services/horizon/internal/actions_root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func TestRootAction(t *testing.T) {

ht.App.horizonVersion = "test-horizon"
ht.App.config.StellarCoreURL = server.URL
ht.App.UpdateStellarCoreInfo()

w := ht.Get("/")
if ht.Assert.Equal(200, w.Code) {
Expand Down

0 comments on commit 71ef94e

Please sign in to comment.