Skip to content

Commit

Permalink
*: Update go version (#5885)
Browse files Browse the repository at this point in the history
update go version to 1.10 and re-format with newest gofmt
  • Loading branch information
ngaut authored and tiancaiamao committed Feb 22, 2018
1 parent 4e1a114 commit aeb6c77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: go
go_import_path: github.com/pingcap/tidb

go:
- 1.9.x
- "1.10"

# https://docs.travis-ci.com/user/customizing-the-build/#Rows-that-are-Allowed-to-Fail
env:
Expand All @@ -14,7 +14,7 @@ env:
matrix:
fast_finish: true
allow_failures:
- go: 1.9.x
- go: "1.10"
env: TRAVIS_COVERAGE=1

before_install:
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
jobs:
build:
docker:
- image: golang:1.9
- image: golang:1.10
working_directory: /go/src/github.com/pingcap/tidb
steps:
- checkout
Expand Down
2 changes: 1 addition & 1 deletion util/arena/arena.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewAllocator(capacity int) *SimpleAllocator {
// Alloc implements Allocator.AllocBytes interface.
func (s *SimpleAllocator) Alloc(capacity int) []byte {
if s.off+capacity < cap(s.arena) {
slice := s.arena[s.off:s.off : s.off+capacity]
slice := s.arena[s.off : s.off : s.off+capacity]
s.off += capacity
return slice
}
Expand Down

0 comments on commit aeb6c77

Please sign in to comment.