Skip to content

Commit

Permalink
Streams v2 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Dec 10, 2018
1 parent 5be522d commit f6f79e6
Show file tree
Hide file tree
Showing 51 changed files with 4,052 additions and 916 deletions.
5 changes: 0 additions & 5 deletions .bumpversion.cfg

This file was deleted.

18 changes: 8 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@ sudo: false

language: go
go:
- "1.10"
- "1.11"
- "1.x"
env:
- GO111MODULE=on

before_install:
- curl -L -s https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
- go get -u golang.org/x/lint/golint
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover

install:
- dep ensure
- go get github.com/mattn/goveralls

script:
# - golint $(go list ./... | grep -v /vendor/)
# - golint ./...
- go vet ./...
- go test -cover ./...
- $HOME/gopath/bin/goveralls -service=travis-ci -ignore=example/*
- go test -covermode=count -coverprofile=profile.cov ./...
- goveralls -coverprofile=profile.cov -service=travis-ci -ignore=example/*

notifications:
email: false
290 changes: 0 additions & 290 deletions Gopkg.lock

This file was deleted.

23 changes: 0 additions & 23 deletions Gopkg.toml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/msales/streams)](https://goreportcard.com/report/github.com/msales/streams)
[![Build Status](https://travis-ci.org/msales/streams.svg?branch=master)](https://travis-ci.org/msales/streams)
[![Coverage Status](https://coveralls.io/repos/github/msales/streams/badge.svg?branch=master)](https://coveralls.io/github/msales/streams?branch=master)
[![GoDoc](https://godoc.org/github.com/msales/streams?status.svg)](https://godoc.org/github.com/msales/streams)
[![GitHub release](https://img.shields.io/github/release/msales/streams.svg)](https://github.com/msales/streams/releases)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/msales/streams/master/LICENSE)

Expand Down
6 changes: 3 additions & 3 deletions cache/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cache
import (
"time"

"github.com/msales/pkg/cache"
"github.com/msales/streams"
"github.com/msales/pkg/v3/cache"
"github.com/msales/streams/v2"
)

// Sink represents a Cache streams sink.
Expand Down Expand Up @@ -48,7 +48,7 @@ func (p *Sink) Process(msg *streams.Message) error {
return p.pipe.Commit(msg)
}

return nil
return p.pipe.Mark(msg)
}

// Close closes the processor.
Expand Down
Loading

0 comments on commit f6f79e6

Please sign in to comment.