Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.Writer and io.Reader pubsub. Also, CLI tool for watermill #53

Merged
merged 41 commits into from
Feb 27, 2019

Conversation

maclav3
Copy link
Contributor

@maclav3 maclav3 commented Feb 21, 2019

No description provided.

"github.com/spf13/viper"
)

var random = rand.New(rand.NewSource(time.Now().Unix()))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

random is unused (from varcheck)

return p.wc.Close()
}

func (p Publisher) write(topic string, msg *message.Message) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write passes lock by value: github.com/ThreeDotsLabs/watermill/message/infrastructure/io.Publisher contains sync.WaitGroup contains sync.noCopy (from govet)

s.config.Logger.Trace("Reader channel closed", nil)
}

func (s Subscriber) read(reader *bufio.Reader) chan []byte {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

read passes lock by value: github.com/ThreeDotsLabs/watermill/message/infrastructure/io.Subscriber contains sync.WaitGroup contains sync.noCopy (from govet)

go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@roblaszczak roblaszczak merged commit 53da33e into master Feb 27, 2019
@roblaszczak roblaszczak deleted the io-writer-reader branch September 11, 2019 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants