Skip to content

Commit

Permalink
Removes inline call to UpdateStellarCoreInfo() from root acount
Browse files Browse the repository at this point in the history
  • Loading branch information
nullstyle committed Mar 15, 2018
1 parent 081dd9c commit cfa216c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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 cfa216c

Please sign in to comment.