Skip to content

Commit

Permalink
refactoring and optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
ergoz committed Apr 15, 2021
1 parent 01d6549 commit 6e4bcc5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# runner instead of the slow VM-based runner.
sudo: false


language: go

# Only the last two Go releases are supported by the Go team with security
Expand All @@ -17,41 +16,34 @@ go:
- 1.x
- tip


os:
- linux


matrix:
allow_failures:
- go: tip


notifications:
email:
on_success: change
on_failure: always


# Only clone the most recent commit.
git:
depth: 1


before_install:
- export GO111MODULE="on"


install:
- go mod download
- go get github.com/golangci/golangci-lint/cmd/golangci-lint
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls


script:
- go vet ./...
- golangci-lint run
- go test -v -covermode=count -coverprofile=coverage.out
- go test -race
- goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
- goveralls -coverprofile=coverage.out -service=travis-ci
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ you need to accumulate data from jobs for batch processing in database.
[![license](https://img.shields.io/github/license/rb-pkg/buflice.svg)](LICENSE)
[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://pkg.go.dev/github.com/rb-pkg/buflice)
[![Coverage Status](https://coveralls.io/repos/github/rb-pkg/buflice/badge.svg?branch=master)](https://coveralls.io/github/rb-pkg/buflice?branch=master)
[![Build Status](https://travis-ci.org/rb-pkg/buflice.svg?branch=master)](https://travis-ci.org/rb-pkg/buflice)
[![Build Status](https://travis-ci.com/rb-pkg/buflice.svg?branch=master)](https://travis-ci.com/rb-pkg/buflice)
[![Go Report Card](https://goreportcard.com/badge/github.com/rb-pkg/buflice)](https://goreportcard.com/report/github.com/rb-pkg/buflice)

## Installation
Expand Down
1 change: 0 additions & 1 deletion buflice.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func (bs *Buflice) flushReset() {
bs.flushChan <- sendSlice
bs.slice = bs.slice[:0]
bs.wgProc.Done()
return
}

// Add is for adding elements
Expand Down

0 comments on commit 6e4bcc5

Please sign in to comment.