Skip to content

Commit

Permalink
Update Travis (#2215)
Browse files Browse the repository at this point in the history
* update travis

* update binutils

* upgrade binutils version

* remove cache

* none of this works

* upgrade ubuntu version

* lint fixes
  • Loading branch information
Nishant Das committed Apr 9, 2019
1 parent 97b5ef0 commit 775f4d6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ sudo: false
matrix:
include:
- os: linux
go: 1.11.x
dist: xenial
go: 1.12.x
env:
- lint
install:
Expand Down
1 change: 0 additions & 1 deletion beacon-chain/core/epoch/epoch_processing.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ func ProcessJustification(
prevEpochBoundaryAttestingBalance uint64,
prevTotalBalance uint64,
totalBalance uint64,
enableLogging bool,
) *pb.BeaconState {

ctx, span := trace.StartSpan(ctx, "beacon-chain.ChainService.state.ProcessEpoch.ProcessJustification")
Expand Down
2 changes: 0 additions & 2 deletions beacon-chain/core/epoch/epoch_processing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ func TestProcessJustification_PreviousEpochJustified(t *testing.T) {
1,
1,
1,
false, /* disable logging */
)

if newState.PreviousJustifiedEpoch != 3 {
Expand All @@ -256,7 +255,6 @@ func TestProcessJustification_PreviousEpochJustified(t *testing.T) {
1,
1,
1,
false, /* disable logging */
)
if newState.JustifiedEpoch != helpers.CurrentEpoch(state)-1 {
t.Errorf("New state's justified epoch %d != state's epoch -2: %d",
Expand Down
1 change: 0 additions & 1 deletion beacon-chain/core/state/transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ func ProcessEpoch(ctx context.Context, state *pb.BeaconState, config *Transition
prevEpochAttestingBalance,
prevTotalBalance,
totalBalance,
config.Logging,
)

// Process crosslinks records.
Expand Down
1 change: 1 addition & 0 deletions beacon-chain/db/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/binary"
"errors"
"fmt"

"github.com/boltdb/bolt"
"github.com/gogo/protobuf/proto"
"github.com/prometheus/client_golang/prometheus"
Expand Down
4 changes: 3 additions & 1 deletion shared/prometheus/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ func (s *Service) healthzHandler(w http.ResponseWriter, _ *http.Request) {
}
}

func (s *Service) goroutinezHandler(w http.ResponseWriter, r *http.Request) {
func (s *Service) goroutinezHandler(w http.ResponseWriter, _ *http.Request) {
stack := debug.Stack()
// #nosec G104
w.Write(stack)
// #nosec G104
pprof.Lookup("goroutine").WriteTo(w, 2)
}

Expand Down

0 comments on commit 775f4d6

Please sign in to comment.