Use errors.New instead of fmt.Errorf

This commit is contained in:
Xavi Ramirez 2017-08-10 19:20:55 +00:00
parent dd9da85055
commit 1632c81fc7

View file

@ -1,13 +1,13 @@
package batchconsumer
import (
"fmt"
"errors"
"time"
"github.com/Clever/amazon-kinesis-client-go/kcl"
)
var ErrBatchFull = fmt.Errorf("The batch is full")
var ErrBatchFull = errors.New("The batch is full")
type batcher struct {
flushCount int